net.minecraft.entity.passive

public class PufferfishEntity

extends FishEntity

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, EntryConvertible, Attackable, ServerWaypoint, Waypoint, Targeter, EquipmentHolder, Leashable, Bucketable

net.minecraft.world.entity.animal.fish.Pufferfish
net.minecraft.class_1454
net.minecraft.entity.passive.PufferfishEntity

Field summary

Modifier and TypeField
private static final TrackedData<Integer>
PUFF_STATE
field_6835
PUFF_STATE
private int
inflateCounter
field_6833
inflateTicks
private int
deflateTimer
field_6832
deflateTicks
private static final TargetPredicate$EntityPredicate
SCARY_MOB
field_6834
BLOW_UP_FILTER
private static final TargetPredicate
TARGETING_CONDITIONS
field_33692
BLOW_UP_TARGET_PREDICATE
public static final int
STATE_SMALL
field_30353
NOT_PUFFED
public static final int
STATE_MID
field_30354
SEMI_PUFFED
public static final int
STATE_FULL
field_30355
FULLY_PUFFED
private static final int
DEFAULT_PUFF_STATE
field_57615
DEFAULT_PUFF_STATE

Constructor summary

ModifierConstructor
public (EntityType<? extends PufferfishEntity> type, World level)

Method summary

Modifier and TypeMethod
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public int
getPuffState()
method_6594()
getPuffState()
public void
setPuffState(int state)
method_6596(int arg0)
setPuffState(int puffState)
public void
onSyncedDataUpdated(EntityDataAccessor<?> accessor)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
protected void
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
public ItemStack
getBucketItemStack()
method_6452()
getBucketItem()
protected void
registerGoals()
method_5959()
initGoals()
public void
tick()
method_5773()
tick()
public void
aiStep()
method_6007()
tickMovement()
private void
touch(ServerLevel level, Mob mob)
method_6593(class_3218 arg0, class_1308 arg1)
sting(ServerWorld world, MobEntity target)
public void
playerTouch(Player player)
method_5694(class_1657 arg0)
onPlayerCollision(PlayerEntity arg0)
protected SoundEvent
getDeathSound()
method_6002()
getDeathSound()
protected SoundEvent
getHurtSound(DamageSource source)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
getFlopSound()
method_6457()
getFlopSound()
public EntityDimensions
getDefaultDimensions(Pose pose)
method_55694(class_4050 arg0)
getBaseDimensions(EntityPose arg0)
private static float
getScale(int state)
method_6592(int arg0)
getScaleForPuffState(int puffState)
private boolean
lambda$aiStep$0(ServerLevel arg0, Mob arg1)
method_36550(class_3218 arg0, class_1308 arg1)
method_36550(ServerWorld arg0, MobEntity arg1)
private static boolean
lambda$static$0(LivingEntity arg0, ServerLevel arg1)
method_6591(class_1309 arg0, class_3218 arg1)
method_6591(LivingEntity entity, ServerWorld world)