Class FluidRestriction
java.lang.Object
com.wdiscute.starcatcher.registry.fishrestrictions.AbstractFishRestriction
com.wdiscute.starcatcher.registry.fishrestrictions.FluidRestriction
- 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 FluidRestrictionstatic final FluidRestrictionstatic final com.mojang.serialization.MapCodec<FluidRestriction> static final FluidRestrictionstatic final FluidRestrictionstatic final FluidRestrictionstatic final FluidRestrictionFields inherited from class com.wdiscute.starcatcher.registry.fishrestrictions.AbstractFishRestriction
ABSTRACT_PROCESSOR_CODEC, translationOverride -
Constructor Summary
ConstructorsConstructorDescriptionFluidRestriction(List<net.minecraft.resources.ResourceLocation> fluids, String translationOverride) FluidRestriction(net.minecraft.resources.ResourceLocation fluids, 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()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) intgetColor(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, @NotNull net.minecraft.world.entity.player.Player player, AbstractFishRestriction.Context context) net.minecraft.network.chat.MutableComponentList<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) 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> intMethods inherited from class com.wdiscute.starcatcher.registry.fishrestrictions.AbstractFishRestriction
compareTo, getCodecOrThrow, getHover, getRegistryHolderOrThrow, isEnabled, render
-
Field Details
-
CODEC
-
LAVA
-
WATER
-
VOID
-
AIR
-
ACID
-
PURPLE_SODA
-
-
Constructor Details
-
FluidRestriction
public FluidRestriction() -
FluidRestriction
-
FluidRestriction
public FluidRestriction(net.minecraft.resources.ResourceLocation fluids, String translationOverride)
-
-
Method Details
-
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
-
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) - Overrides:
getIndexHoverin classAbstractFishRestriction
-
getDescriptionPrefix
public net.minecraft.network.chat.MutableComponent getDescriptionPrefix()- Overrides:
getDescriptionPrefixin classAbstractFishRestriction
-
getSortPriority
public int getSortPriority()- Overrides:
getSortPriorityin classAbstractFishRestriction
-
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) - Overrides:
getDescriptionin classAbstractFishRestriction
-
getColor
public int getColor(net.minecraft.world.level.Level level, FishProperties fp, @NotNull @NotNull net.minecraft.world.entity.player.Player player, AbstractFishRestriction.Context context) - Overrides:
getColorin 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
-
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
-