Class StructureRestriction
java.lang.Object
com.wdiscute.starcatcher.registry.fishrestrictions.AbstractFishRestriction
com.wdiscute.starcatcher.registry.fishrestrictions.StructureRestriction
- All Implemented Interfaces:
Comparable<AbstractFishRestriction>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.wdiscute.starcatcher.registry.fishrestrictions.AbstractFishRestriction
AbstractFishRestriction.Context -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<StructureRestriction> static final StructureRestrictionstatic final StructureRestrictionstatic final StructureRestrictionstatic final StructureRestrictionFields inherited from class com.wdiscute.starcatcher.registry.fishrestrictions.AbstractFishRestriction
ABSTRACT_PROCESSOR_CODEC, translationOverride -
Constructor Summary
ConstructorsConstructorDescriptionStructureRestriction(List<net.minecraft.resources.ResourceLocation> rl, String translationOverride) -
Method Summary
Modifier and TypeMethodDescriptionintadjustChance(int currentChance, net.minecraft.world.level.Level level, FishProperties fp, @NotNull net.minecraft.world.entity.Entity entity, net.minecraft.world.item.ItemStack rod, AbstractFishRestriction.Context context) com.mojang.serialization.MapCodec<? extends AbstractFishRestriction> codec()net.minecraft.network.chat.MutableComponentList<net.minecraft.network.chat.Component> getHover(net.minecraft.world.level.Level level, FishProperties fp, @NotNull net.minecraft.world.entity.player.Player player, AbstractFishRestriction.Context context) net.minecraft.network.chat.MutableComponentgetNonOverriddenDescription(net.minecraft.world.level.Level level, FishProperties fp, @NotNull net.minecraft.world.entity.player.Player player, AbstractFishRestriction.Context context) net.neoforged.neoforge.registries.DeferredHolder<AbstractFishRestriction, AbstractFishRestriction> Methods inherited from class com.wdiscute.starcatcher.registry.fishrestrictions.AbstractFishRestriction
compareTo, getBlacklist, getCodecOrThrow, getColor, getDescription, getIndexHover, getRegistryHolderOrThrow, getSortPriority, isEnabled, render
-
Field Details
-
CODEC
-
TRIAL_CHAMBERS
-
OCEAN_MONUMENT
-
END_CITIES
-
VILLAGES
-
-
Constructor Details
-
StructureRestriction
-
-
Method Details
-
getDescriptionPrefix
public net.minecraft.network.chat.MutableComponent getDescriptionPrefix()- Overrides:
getDescriptionPrefixin classAbstractFishRestriction
-
getNonOverriddenDescription
public net.minecraft.network.chat.MutableComponent getNonOverriddenDescription(net.minecraft.world.level.Level level, FishProperties fp, @NotNull @NotNull net.minecraft.world.entity.player.Player player, AbstractFishRestriction.Context context) - Overrides:
getNonOverriddenDescriptionin classAbstractFishRestriction
-
getHover
public List<net.minecraft.network.chat.Component> getHover(net.minecraft.world.level.Level level, FishProperties fp, @NotNull @NotNull net.minecraft.world.entity.player.Player player, AbstractFishRestriction.Context context) - Overrides:
getHoverin classAbstractFishRestriction
-
codec
- Specified by:
codecin classAbstractFishRestriction
-
getRegistryHolder
public net.neoforged.neoforge.registries.DeferredHolder<AbstractFishRestriction,AbstractFishRestriction> getRegistryHolder()- Specified by:
getRegistryHolderin classAbstractFishRestriction
-
adjustChance
public int adjustChance(int currentChance, net.minecraft.world.level.Level level, FishProperties fp, @NotNull @NotNull net.minecraft.world.entity.Entity entity, net.minecraft.world.item.ItemStack rod, AbstractFishRestriction.Context context) - Specified by:
adjustChancein classAbstractFishRestriction
-