Class AbstractFishRestriction
java.lang.Object
com.wdiscute.starcatcher.registry.fishrestrictions.AbstractFishRestriction
- Direct Known Subclasses:
BaitRestriction,BiomeBias,BiomeRestriction,CaughtLimitRestriction,ChancePercentageRestriction,DaytimeBias,DaytimeRestriction,DimensionRestriction,ElevationBias,ElevationRestriction,EmptyRestriction,FluidRestriction,RarityCountRestriction,SeasonRestriction,WeatherRestriction
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<AbstractFishRestriction> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract com.mojang.serialization.MapCodec<? extends AbstractFishRestriction> codec()List<net.minecraft.network.chat.Component> getBlacklist(net.minecraft.world.level.Level level, FishProperties fp, @NotNull net.minecraft.world.entity.player.Player player, AbstractFishRestriction.Context context) com.mojang.serialization.MapCodec<? extends AbstractFishRestriction> net.minecraft.network.chat.ComponentgetDescription(net.minecraft.world.level.Level level, FishProperties fp, @NotNull net.minecraft.world.entity.player.Player player, AbstractFishRestriction.Context context) abstract intgetFishChance(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) List<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) List<net.minecraft.network.chat.Component> getIndexHover(net.minecraft.world.level.Level level, FishProperties fp, @NotNull net.minecraft.world.entity.player.Player player, AbstractFishRestriction.Context context) abstract net.neoforged.neoforge.registries.DeferredHolder<AbstractFishRestriction, AbstractFishRestriction> net.neoforged.neoforge.registries.DeferredHolder<AbstractFishRestriction, AbstractFishRestriction> booleanvoidrender(net.minecraft.client.gui.GuiGraphics guiGraphics, int topLeftX, int topLeftY, int mouseX, int mouseY, AbstractFishRestriction.Context context)
-
Field Details
-
ABSTRACT_PROCESSOR_CODEC
public static final com.mojang.serialization.Codec<AbstractFishRestriction> ABSTRACT_PROCESSOR_CODEC
-
-
Constructor Details
-
AbstractFishRestriction
public AbstractFishRestriction()
-
-
Method Details
-
codec
-
getRegistryHolder
public abstract net.neoforged.neoforge.registries.DeferredHolder<AbstractFishRestriction,AbstractFishRestriction> getRegistryHolder() -
getRegistryHolderOrThrow
public net.neoforged.neoforge.registries.DeferredHolder<AbstractFishRestriction,AbstractFishRestriction> getRegistryHolderOrThrow() -
getCodecOrThrow
-
getFishChance
public abstract int getFishChance(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) -
getDescription
public net.minecraft.network.chat.Component getDescription(net.minecraft.world.level.Level level, FishProperties fp, @NotNull @NotNull net.minecraft.world.entity.player.Player player, AbstractFishRestriction.Context context) -
isEnabled
public boolean isEnabled() -
getIndexHover
public List<net.minecraft.network.chat.Component> getIndexHover(net.minecraft.world.level.Level level, FishProperties fp, @NotNull @NotNull net.minecraft.world.entity.player.Player player, AbstractFishRestriction.Context context) -
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) -
getBlacklist
public List<net.minecraft.network.chat.Component> getBlacklist(net.minecraft.world.level.Level level, FishProperties fp, @NotNull @NotNull net.minecraft.world.entity.player.Player player, AbstractFishRestriction.Context context) -
render
public void render(net.minecraft.client.gui.GuiGraphics guiGraphics, int topLeftX, int topLeftY, int mouseX, int mouseY, AbstractFishRestriction.Context context)
-