net.minecraft.entity.passive

public class IronGolemEntity

extends GolemEntity implements Angerable

All mapped superinterfaces:

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

net.minecraft.world.entity.animal.golem.IronGolem
net.minecraft.class_1439
net.minecraft.entity.passive.IronGolemEntity

Field summary

Modifier and TypeField
protected static final TrackedData<Byte>
DATA_FLAGS_ID
field_6763
IRON_GOLEM_FLAGS
private static final int
IRON_INGOT_HEAL_AMOUNT
field_30338
HEALTH_PER_INGOT
private static final boolean
DEFAULT_PLAYER_CREATED
field_57611
DEFAULT_PLAYER_CREATED
private int
attackAnimationTick
field_6762
attackTicksLeft
private int
offerFlowerTick
field_6759
lookingAtVillagerTicksLeft
private static final UniformIntProvider
PERSISTENT_ANGER_TIME
field_25365
ANGER_TIME_RANGE
private long
persistentAngerEndTime
field_63321
angerEndTime
private LazyEntityReference<LivingEntity>
persistentAngerTarget
field_25367
angryAt

Constructor summary

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

Method summary

Modifier and TypeMethod
protected void
registerGoals()
method_5959()
initGoals()
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public static DefaultAttributeContainer$Builder
createAttributes()
method_26886()
createIronGolemAttributes()
protected int
decreaseAirSupply(int currentSupply)
method_6130(int arg0)
getNextAirUnderwater(int arg0)
protected void
doPush(Entity entity)
method_6087(class_1297 arg0)
pushAway(Entity arg0)
public void
aiStep()
method_6007()
tickMovement()
public boolean
canSpawnSprintParticle()
method_27298()
shouldSpawnSprintingParticles()
public boolean
canAttack(LivingEntity target)
method_18395(class_1309 arg0)
canTarget(LivingEntity 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 void
startPersistentAngerTimer()
method_29509()
chooseRandomAngerTime()
public void
setPersistentAngerEndTime(long endTime)
method_75132(long arg0)
setAngerEndTime(long arg0)
public long
getPersistentAngerEndTime()
method_75130()
getAngerEndTime()
public void
setPersistentAngerTarget(EntityReference<LivingEntity> persistentAngerTarget)
method_29513(class_10583<class_1309> arg0)
setAngryAt(LazyEntityReference<LivingEntity> arg0)
public LazyEntityReference<LivingEntity>
getPersistentAngerTarget()
method_29508()
getAngryAt()
private float
getAttackDamage()
method_22328()
getAttackDamage()
public boolean
doHurtTarget(ServerLevel level, Entity target)
method_6121(class_3218 arg0, class_1297 arg1)
tryAttack(ServerWorld arg0, Entity arg1)
public boolean
hurtServer(ServerLevel level, DamageSource source, float damage)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld arg0, DamageSource arg1, float arg2)
public Cracks$CrackLevel
getCrackiness()
method_23347()
getCrackLevel()
public void
handleEntityEvent(byte id)
method_5711(byte arg0)
handleStatus(byte arg0)
public int
getAttackAnimationTick()
method_6501()
getAttackTicksLeft()
public void
offerFlower(boolean offer)
method_6497(boolean arg0)
setLookingAtVillager(boolean lookingAtVillager)
protected SoundEvent
getHurtSound(DamageSource source)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
getDeathSound()
method_6002()
getDeathSound()
protected ActionResult
mobInteract(Player player, InteractionHand hand)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
protected void
playStepSound(BlockPos pos, BlockState blockState)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
public int
getOfferFlowerTick()
method_6502()
getLookingAtVillagerTicks()
public boolean
isPlayerCreated()
method_6496()
isPlayerCreated()
public void
setPlayerCreated(boolean value)
method_6499(boolean arg0)
setPlayerCreated(boolean playerCreated)
public void
die(DamageSource source)
method_6078(class_1282 arg0)
onDeath(DamageSource arg0)
public boolean
checkSpawnObstruction(LevelReader level)
method_5957(class_4538 arg0)
canSpawn(WorldView arg0)
public Vec3d
getLeashOffset()
method_29919()
getLeashOffset()
private static boolean
lambda$registerGoals$0(LivingEntity arg0, ServerLevel arg1)
method_6498(class_1309 arg0, class_3218 arg1)
method_6498(LivingEntity entity, ServerWorld arg1)