net.minecraft.entity.passive

public class HappyGhastEntity

extends AnimalEntity

All mapped superinterfaces:

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

net.minecraft.world.entity.animal.happyghast.HappyGhast
net.minecraft.class_11187
net.minecraft.entity.passive.HappyGhastEntity

Field summary

Modifier and TypeField
public static final float
BABY_SCALE
field_59681
field_59681
public static final int
WANDER_GROUND_DISTANCE
field_59682
field_59682
public static final int
SMALL_RESTRICTION_RADIUS
field_59683
field_59683
public static final int
LARGE_RESTRICTION_RADIUS
field_59684
field_59684
public static final int
RESTRICTION_RADIUS_BUFFER
field_59685
field_59685
public static final int
FAST_HEALING_TICKS
field_59686
field_59686
public static final int
SLOW_HEALING_TICKS
field_59687
field_59687
public static final int
MAX_PASSANGERS
field_59688
field_59688
private static final int
STILL_TIMEOUT_ON_LOAD_GRACE_PERIOD
field_61061
field_61061
private static final int
MAX_STILL_TIMEOUT
field_60551
field_60551
private static final Brain$Profile<HappyGhastEntity>
BRAIN_PROVIDER
field_1_1320
PROFILE
public static final float
SPEED_MULTIPLIER_WHEN_PANICKING
field_59689
field_59689
private int
leashHolderTime
field_60008
ropeRemovalTimer
private int
serverStillTimeout
field_60553
stillTimeout
private static final TrackedData<Boolean>
IS_LEASH_HOLDER
field_60009
HAS_ROPES
private static final TrackedData<Boolean>
STAYS_STILL
field_60549
STAYING_STILL
private static final float
MAX_SCALE
field_60550
field_60550

Constructor summary

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

Method summary

Modifier and TypeMethod
private void
setServerStillTimeout(int serverStillTimeout)
method_72086(int arg0)
setStillTimeout(int stillTimeout)
private EntityNavigation
createBabyNavigation(Level level)
method_70693(class_1937 arg0)
createGhastlingNavigation(World world)
protected void
registerGoals()
method_5959()
initGoals()
private void
adultGhastSetup()
method_70703()
initAdultHappyGhast()
private void
babyGhastSetup()
method_70694()
initGhastling()
protected void
ageBoundaryReached()
method_5619()
onGrowUp()
public static DefaultAttributeContainer$Builder
createAttributes()
method_70701()
createHappyGhastAttributes()
protected float
sanitizeScale(float scale)
method_56077(float arg0)
clampScale(float arg0)
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 float
getWalkTargetValue(BlockPos pos, LevelReader level)
method_6144(class_2338 arg0, class_4538 arg1)
getPathfindingFavor(BlockPos arg0, WorldView arg1)
public boolean
canBreatheUnderwater()
method_6094()
canBreatheInWater()
protected boolean
shouldStayCloseToLeashHolder()
method_43689()
shouldFollowLeash()
protected void
playStepSound(BlockPos pos, BlockState blockState)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
public float
getVoicePitch()
method_6017()
getSoundPitch()
public SoundCategory
getSoundSource()
method_5634()
getSoundCategory()
public int
getAmbientSoundInterval()
method_5970()
getMinAmbientSoundDelay()
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 int
getMaxSpawnClusterSize()
method_5945()
getLimitPerChunk()
public PassiveEntity
getBreedOffspring(ServerLevel level, AgeableMob partner)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
public boolean
canFallInLove()
method_6482()
canEat()
public float
getAgeScale()
method_17825()
getScaleFactor()
public boolean
isFood(ItemStack itemStack)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
public boolean
canUseSlot(EquipmentSlot slot)
method_56991(class_1304 arg0)
canUseSlot(EquipmentSlot arg0)
protected boolean
canDispenserEquipIntoSlot(EquipmentSlot slot)
method_63626(class_1304 arg0)
canDispenserEquipSlot(EquipmentSlot arg0)
public ActionResult
mobInteract(Player player, InteractionHand hand)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
private void
doPlayerRide(Player player)
method_70691(class_1657 arg0)
addPassenger(PlayerEntity player)
protected void
addPassenger(Entity passenger)
method_5627(class_1297 arg0)
addPassenger(Entity arg0)
protected void
removePassenger(Entity passenger)
method_5793(class_1297 arg0)
removePassenger(Entity arg0)
protected boolean
canAddPassenger(Entity passenger)
method_5818(class_1297 arg0)
canAddPassenger(Entity arg0)
public LivingEntity
getControllingPassenger()
method_5642()
getControllingPassenger()
protected Vec3d
getRiddenInput(Player controller, Vec3 selfInput)
method_49482(class_1657 arg0, class_243 arg1)
getControlledMovementInput(PlayerEntity arg0, Vec3d arg1)
protected Vec2f
getRiddenRotation(LivingEntity controller)
method_70698(class_1309 arg0)
getGhastRotation(LivingEntity controllingEntity)
protected void
tickRidden(Player controller, Vec3 riddenInput)
method_49481(class_1657 arg0, class_243 arg1)
tickControlled(PlayerEntity arg0, Vec3d arg1)
protected Brain<HappyGhastEntity>
makeBrain(Brain$Packed packedBrain)
method_18867(class_4095$class_1_142 arg0)
deserializeBrain(Brain$State arg0)
public Brain<HappyGhastEntity>
getBrain()
method_18868()
getBrain()
protected void
customServerAiStep(ServerLevel level)
method_5958(class_3218 arg0)
mobTick(ServerWorld arg0)
public void
tick()
method_5773()
tick()
public void
aiStep()
method_6007()
tickMovement()
private int
getHappyGhastRestrictionRadius()
method_70695()
getUpdatedPositionTargetRange()
private void
checkRestriction()
method_70696()
updatePositionTarget()
private void
continuousHeal()
method_70697()
tickRegeneration()
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
private void
setLeashHolder(boolean isLeashHolder)
method_71011(boolean arg0)
setHasRopes(boolean hasRopes)
public boolean
isLeashHolder()
method_71010()
hasRopes()
private void
syncStayStillFlag()
method_71615()
syncStayingStill()
public boolean
staysStill()
method_71617()
isStayingStill()
public boolean
supportQuadLeashAsHolder()
method_70986()
hasQuadLeashAttachmentPoints()
public Vec3d[]
getQuadLeashHolderOffsets()
method_70985()
getHeldQuadLeashOffsets()
public Vec3d
getLeashOffset()
method_29919()
getLeashOffset()
public double
leashElasticDistance()
method_70990()
getElasticLeashDistance()
public double
leashSnapDistance()
method_70989()
getLeashSnappingDistance()
public void
onElasticLeashPull()
method_71006()
onLongLeashTick()
public void
notifyLeashHolder(Leashable entity)
method_70980(class_9817 arg0)
tickHeldLeash(Leashable arg0)
public void
addAdditionalSaveData(ValueOutput tag)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
public void
readAdditionalSaveData(ValueInput tag)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
public boolean
isOnStillTimeout()
method_72227()
isStill()
private boolean
scanPlayerAboveGhast()
method_71616()
hasPlayerOnTop()
protected BodyControl
createBodyControl()
method_5963()
createBodyControl()
public boolean
canBeCollidedWith(Entity other)
method_30948(class_1297 arg0)
isCollidable(Entity arg0)
public boolean
isFlyingVehicle()
method_70987()
isFlyingVehicle()
public Vec3d
getDismountLocationForPassenger(LivingEntity passenger)
method_24829(class_1309 arg0)
updatePassengerForDismount(LivingEntity arg0)
private static boolean
lambda$babyGhastSetup$0(Goal arg0)
method_70690(class_1352 arg0)
method_70690(Goal goal)
private static boolean
lambda$adultGhastSetup$0(Goal arg0)
method_70692(class_1352 arg0)
method_70692(Goal goal)
private boolean
lambda$registerGoals$0(ItemStack arg0)
method_70699(class_1799 arg0)
method_70699(ItemStack stack)
private static List
lambda$static$0(HappyGhast arg0)
method_1_1573(class_11187 arg0)
method_1_1573(HappyGhastEntity happyGhast)