net.minecraft.entity.mob

public class PhantomEntity

extends MobEntity implements Monster

All mapped superinterfaces:

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

net.minecraft.world.entity.monster.Phantom
net.minecraft.class_1593
net.minecraft.entity.mob.PhantomEntity

Field summary

Modifier and TypeField
public static final float
FLAP_DEGREES_PER_TICK
field_30475
field_30475
public static final int
TICKS_PER_FLAP
field_28641
WING_FLAP_TICKS
private static final TrackedData<Integer>
ID_SIZE
field_7313
SIZE
private Vec3d
moveTargetPoint
field_7314
targetPosition
private BlockPos
anchorPoint
field_7312
circlingCenter
private PhantomEntity$PhantomMovementType
attackPhase
field_7315
movementType

Constructor summary

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

Method summary

Modifier and TypeMethod
public boolean
isFlapping()
method_5776()
isFlappingWings()
protected BodyControl
createBodyControl()
method_5963()
createBodyControl()
protected void
registerGoals()
method_5959()
initGoals()
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public void
setPhantomSize(int size)
method_7091(int arg0)
setPhantomSize(int size)
private void
updatePhantomSizeInfo()
method_7097()
onSizeChanged()
public int
getPhantomSize()
method_7084()
getPhantomSize()
public void
onSyncedDataUpdated(EntityDataAccessor<?> accessor)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
public int
getUniqueFlapTickOffset()
method_33588()
getWingFlapTickOffset()
public void
tick()
method_5773()
tick()
protected void
checkFallDamage(double ya, boolean onGround, BlockState onState, BlockPos pos)
method_5623(double arg0, boolean arg1, class_2680 arg2, class_2338 arg3)
fall(double arg0, boolean arg1, BlockState arg2, BlockPos arg3)
public boolean
onClimbable()
method_6101()
isClimbing()
public void
travel(Vec3 input)
method_6091(class_243 arg0)
travel(Vec3d arg0)
public EntityData
finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, SpawnGroupData groupData)
method_5943(class_5425 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3)
protected void
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
protected void
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
public boolean
shouldRenderAtSqrDistance(double distance)
method_5640(double arg0)
shouldRender(double arg0)
public SoundCategory
getSoundSource()
method_5634()
getSoundCategory()
protected SoundEvent
getAmbientSound()
method_5994()
getAmbientSound()
protected SoundEvent
getHurtSound(DamageSource source)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
getDeathSound()
method_6002()
getDeathSound()
protected float
getSoundVolume()
method_6107()
getSoundVolume()
public boolean
canAttackType(EntityType<?> targetType)
method_5973(class_1299<?> arg0)
canTarget(EntityType<?> arg0)
public EntityDimensions
getDefaultDimensions(Pose pose)
method_55694(class_4050 arg0)
getBaseDimensions(EntityPose arg0)
private boolean
canAttack(ServerLevel level, LivingEntity target, TargetingConditions targetConditions)
method_64463(class_3218 arg0, class_1309 arg1, class_4051 arg2)
testTargetPredicate(ServerWorld world, LivingEntity target, TargetPredicate predicate)
static Random
access$000(Phantom arg0)
method_36649(class_1593 arg0)
method_36649(PhantomEntity arg0)
static Random
access$100(Phantom arg0)
method_36650(class_1593 arg0)
method_36650(PhantomEntity arg0)
static Random
access$200(Phantom arg0)
method_36651(class_1593 arg0)
method_36651(PhantomEntity arg0)
static Random
access$300(Phantom arg0)
method_7090(class_1593 arg0)
method_7090(PhantomEntity arg0)
static Random
access$400(Phantom arg0)
method_7086(class_1593 arg0)
method_7086(PhantomEntity arg0)
static Random
access$500(Phantom arg0)
method_36652(class_1593 arg0)
method_36652(PhantomEntity arg0)
static Random
access$600(Phantom arg0)
method_7080(class_1593 arg0)
method_7080(PhantomEntity arg0)
static Random
access$700(Phantom arg0)
method_7098(class_1593 arg0)
method_7098(PhantomEntity arg0)
static Random
access$800(Phantom arg0)
method_7099(class_1593 arg0)
method_7099(PhantomEntity arg0)
static Random
access$900(Phantom arg0)
method_7096(class_1593 arg0)
method_7096(PhantomEntity arg0)
static Random
access$1000(Phantom arg0)
method_7093(class_1593 arg0)
method_7093(PhantomEntity arg0)
static Random
access$1100(Phantom arg0)
method_7092(class_1593 arg0)
method_7092(PhantomEntity arg0)