net.minecraft.world.entity.animal

public class TropicalFish

extends AbstractSchoolingFish

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, UniquelyIdentifyable, ScoreHolder, DataComponentGetter, Attackable, EquipmentUser, Leashable, Targeting, Bucketable

cjr
net.minecraft.world.entity.animal.TropicalFish
net.minecraft.class_1474
net.minecraft.entity.passive.TropicalFishEntity

Field summary

Modifier and TypeField
public static final TropicalFish$Variant
a
DEFAULT_VARIANT
field_55968
DEFAULT_VARIANT
private static final EntityDataAccessor<Integer>
c
DATA_ID_TYPE_VARIANT
field_6874
VARIANT
public static final List<TropicalFish$Variant>
b
COMMON_VARIANTS
field_41573
COMMON_VARIANTS
private boolean
bF
isSchool
field_6877
commonSpawn

Constructor summary

ModifierConstructor
public (EntityType<? extends TropicalFish> arg0, Level arg1)

Method summary

Modifier and TypeMethod
public static String
b(int arg0)
getPredefinedName(int arg0)
method_6649(int arg0)
getToolTipForVariant(int variant)
static int
a(cjr$b arg0, cxq arg1, cxq arg2)
packVariant(TropicalFish$Pattern arg0, DyeColor arg1, DyeColor arg2)
method_47861(class_1474$class_1475 arg0, class_1767 arg1, class_1767 arg2)
getVariantId(TropicalFishEntity$Variety variety, DyeColor baseColor, DyeColor patternColor)
public static DyeColor
c(int arg0)
getBaseColor(int arg0)
method_6652(int arg0)
getBaseColor(int variant)
public static DyeColor
r(int arg0)
getPatternColor(int arg0)
method_6651(int arg0)
getPatternColor(int variant)
public static TropicalFish$Pattern
s(int arg0)
getPattern(int arg0)
method_47864(int arg0)
getVariety(int variant)
protected void
a(akl$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public void
b(tx arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
a(tx arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
private void
t(int arg0)
setPackedVariant(int arg0)
method_47865(int arg0)
setTropicalFishVariant(int variant)
public boolean
q(int arg0)
isMaxGroupSizeReached(int arg0)
method_5969(int arg0)
spawnsTooManyForEachTry(int arg0)
private int
gz()
getPackedVariant()
method_47863()
getTropicalFishVariant()
public DyeColor
gw()
getBaseColor()
method_6658()
getBaseColor()
public DyeColor
gx()
getPatternColor()
method_6655()
getPatternColor()
public TropicalFish$Pattern
gy()
getPattern()
method_66681()
getVariety()
private void
a(cjr$b arg0)
setPattern(TropicalFish$Pattern arg0)
method_47860(class_1474$class_1475 arg0)
setVariety(TropicalFishEntity$Variety variety)
private void
a(cxq arg0)
setBaseColor(DyeColor arg0)
method_66679(class_1767 arg0)
setBaseColor(DyeColor baseColor)
private void
b(cxq arg0)
setPatternColor(DyeColor arg0)
method_66680(class_1767 arg0)
setPatternColor(DyeColor patternColor)
public <T> T
a(ki<? extends T> arg0)
get(DataComponentType<? extends T> arg0)
method_58694(class_9331<? extends T> arg0)
get(ComponentType<? extends T> arg0)
protected void
a(ke arg0)
applyImplicitComponents(DataComponentGetter arg0)
method_66649(class_9473 arg0)
copyComponentsFrom(ComponentsAccess arg0)
protected <T> boolean
b(ki<T> arg0, T arg1)
applyImplicitComponent(DataComponentType<T> arg0, T arg1)
method_66654(class_9331<T> arg0, T arg1)
setApplicableComponent(ComponentType<T> arg0, T arg1)
public void
j(cys arg0)
saveToBucketTag(ItemStack arg0)
method_6455(class_1799 arg0)
copyDataToStack(ItemStack arg0)
public ItemStack
R_()
getBucketItemStack()
method_6452()
getBucketItem()
protected SoundEvent
u()
getAmbientSound()
method_5994()
getAmbientSound()
protected SoundEvent
l_()
getDeathSound()
method_6002()
getDeathSound()
protected SoundEvent
e(bup arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
t()
getFlopSound()
method_6457()
getFlopSound()
public SpawnGroupData
a(djg arg0, btw arg1, bwi arg2, bxr arg3)
finalizeSpawn(ServerLevelAccessor arg0, DifficultyInstance arg1, EntitySpawnReason arg2, SpawnGroupData arg3)
method_5943(class_5425 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3)
public static boolean
b(bwj<cjr> arg0, diq arg1, bwi arg2, iu arg3, azt arg4)
checkTropicalFishSpawnRules(EntityType<TropicalFish> arg0, LevelAccessor arg1, EntitySpawnReason arg2, BlockPos arg3, RandomSource arg4)
method_38985(class_1299<class_1474> arg0, class_1936 arg1, class_3730 arg2, class_2338 arg3, class_5819 arg4)
canTropicalFishSpawn(EntityType<TropicalFishEntity> type, WorldAccess world, SpawnReason reason, BlockPos pos, Random random)