Class BiomeBias
java.lang.Object
com.wdiscute.starcatcher.registry.fishrestrictions.AbstractFishRestriction
com.wdiscute.starcatcher.registry.fishrestrictions.BiomeBias
-
Nested Class Summary
Nested classes/interfaces inherited from class com.wdiscute.starcatcher.registry.fishrestrictions.AbstractFishRestriction
AbstractFishRestriction.Context -
Field Summary
FieldsFields inherited from class com.wdiscute.starcatcher.registry.fishrestrictions.AbstractFishRestriction
ABSTRACT_PROCESSOR_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<? extends AbstractFishRestriction> codec()List<net.minecraft.resources.ResourceLocation> List<net.minecraft.resources.ResourceLocation> 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) net.minecraft.network.chat.ComponentgetDescription(net.minecraft.world.level.Level level, FishProperties fp, @Nullable net.minecraft.world.entity.player.Player player, AbstractFishRestriction.Context context) intintgetFishChance(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) net.neoforged.neoforge.registries.DeferredHolder<AbstractFishRestriction, AbstractFishRestriction> Methods inherited from class com.wdiscute.starcatcher.registry.fishrestrictions.AbstractFishRestriction
getCodecOrThrow, getIndexHover, getRegistryHolderOrThrow, isEnabled, render
-
Field Details
-
CODEC
-
-
Constructor Details
-
BiomeBias
public BiomeBias() -
BiomeBias
-
-
Method Details
-
getBiomes
-
getBiomesTags
-
getExtraChance
public int getExtraChance() -
getTranslationOverride
-
codec
- Specified by:
codecin classAbstractFishRestriction
-
getRegistryHolder
public net.neoforged.neoforge.registries.DeferredHolder<AbstractFishRestriction,AbstractFishRestriction> getRegistryHolder()- Specified by:
getRegistryHolderin classAbstractFishRestriction
-
getFishChance
public 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) - Specified by:
getFishChancein classAbstractFishRestriction
-
getDescription
public net.minecraft.network.chat.Component getDescription(net.minecraft.world.level.Level level, FishProperties fp, @Nullable @Nullable net.minecraft.world.entity.player.Player player, AbstractFishRestriction.Context context) - Overrides:
getDescriptionin 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
-
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) - Overrides:
getBlacklistin classAbstractFishRestriction
-