Class BiomeRestriction
java.lang.Object
com.wdiscute.starcatcher.registry.fishrestrictions.AbstractFishRestriction
com.wdiscute.starcatcher.registry.fishrestrictions.BiomeRestriction
- All Implemented Interfaces:
Comparable<AbstractFishRestriction>
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractFishRestriction
AbstractFishRestriction.Context -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final com.mojang.serialization.MapCodec<BiomeRestriction> static final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionstatic final BiomeRestrictionFields inherited from class AbstractFishRestriction
ABSTRACT_PROCESSOR_CODEC, translationOverride -
Constructor Summary
ConstructorsConstructorDescriptionBiomeRestriction(List<com.wdiscute.utils.EntryOrTag<net.minecraft.world.level.biome.Biome>> biomes, List<com.wdiscute.utils.EntryOrTag<net.minecraft.world.level.biome.Biome>> blacklist, String hover, String translation) -
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) biome(net.minecraft.resources.Identifier biome) blacklisted(net.minecraft.resources.Identifier biome) blacklistedTag(net.minecraft.resources.Identifier tag) com.mojang.serialization.MapCodec<? extends AbstractFishRestriction> codec()static BiomeRestrictionempty()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.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) 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) 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> inttag(net.minecraft.resources.Identifier tag) translation(String translation) Methods inherited from class AbstractFishRestriction
compareTo, getCodecOrThrow, getColor, getDescription, getRegistryHolderOrThrow, isEnabled, render
-
Field Details
-
CODEC
-
LAKES
-
WARM_LAKES
-
COLD_LAKES
-
ICE_SPIKES
-
FLOWER_FOREST
-
SUNFLOWER_PLAINS
-
SWAMP_ONLY
-
BAMBOO_JUNGLE
-
LUSH_CAVES
-
UNDERGROUND
-
DRIPSTONE_CAVES
-
DEEP_DARK
-
FROZEN_OCEAN
-
ALL_OCEANS
-
NORMAL_OCEANS
-
LUKEWARM_OCEAN
-
COLD_AND_LUKEWARM_OCEAN
-
WARM_OCEANS
-
DEEP_OCEANS
-
COLD_RIVERS
-
RIVERS
-
SAVANNAS
-
BEACHES
-
MUSHROOM_FIELDS
-
JUNGLES
-
TAIGAS
-
CHERRY_GROVES
-
JUNGLES_AND_SWAMPS
-
SWAMPS
-
MANGROVE_SWAMP
-
DARK_FOREST
-
FOREST
-
LUSH_CAVES_AND_JUNGLES
-
CRIMSON_FOREST
-
WARPED_FOREST
-
SOUL_SAND_VALLEY
-
BASALT_DELTAS
-
OUTER_ISLANDS
-
-
Constructor Details
-
BiomeRestriction
-
-
Method Details
-
getSortPriority
public int getSortPriority()- Overrides:
getSortPriorityin 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
-
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
-
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
-
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
-
biome
-
tag
-
blacklisted
-
blacklistedTag
-
hover
-
translation
-
empty
-