net.minecraft.world.entity.animal

public class IronGolem

extends AbstractGolem implements NeutralMob

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, CommandSource, ScoreHolder, Attackable, EquipmentUser, Targeting, NeutralMob

cft
net.minecraft.world.entity.animal.IronGolem
net.minecraft.class_1439
net.minecraft.entity.passive.IronGolemEntity
net.minecraft.src.C_857_
net.minecraft.world.entity.animal.EntityIronGolem

Field summary

Modifier and TypeField
protected static final EntityDataAccessor<Byte>
c
DATA_FLAGS_ID
field_6763
IRON_GOLEM_FLAGS
f_28826_
private static final int
d
IRON_INGOT_HEAL_AMOUNT
field_30338
HEALTH_PER_INGOT
f_148932_
private int
e
attackAnimationTick
field_6762
attackTicksLeft
f_28830_
private int
bY
offerFlowerTick
field_6759
lookingAtVillagerTicksLeft
f_28831_
private static final UniformInt
bZ
PERSISTENT_ANGER_TIME
field_25365
ANGER_TIME_RANGE
f_28827_
private int
ca
remainingPersistentAngerTime
field_25366
angerTime
f_28828_
private UUID
cb
persistentAngerTarget
field_25367
angryAt
f_28829_

Constructor summary

ModifierConstructor
public (EntityType<? extends IronGolem> p_28835_, Level arg1)

Method summary

Modifier and TypeMethod
protected void
z()
registerGoals()
method_5959()
initGoals()
m_8099_()
protected void
a(ako$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
m_8097_(C_5247_$C_313487_ arg0)
public static AttributeSupplier$Builder
s()
createAttributes()
method_26886()
createIronGolemAttributes()
m_28883_()
protected int
n(int arg0)
decreaseAirSupply(int arg0)
method_6130(int arg0)
getNextAirUnderwater(int arg0)
m_7302_(int arg0)
protected void
D(bsw arg0)
doPush(Entity arg0)
method_6087(class_1297 arg0)
pushAway(Entity arg0)
m_7324_(C_507_ arg0)
public void
n_()
aiStep()
method_6007()
tickMovement()
m_8107_()
public boolean
bq()
canSpawnSprintParticle()
method_27298()
shouldSpawnSprintingParticles()
m_5843_()
public boolean
a(btc<?> arg0)
canAttackType(EntityType<?> arg0)
method_5973(class_1299<?> arg0)
canTarget(EntityType<?> arg0)
m_6549_(C_513_<?> arg0)
public void
b(us arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
public void
a(us arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
public void
c()
startPersistentAngerTimer()
method_29509()
chooseRandomAngerTime()
m_6825_()
public void
a(int arg0)
setRemainingPersistentAngerTime(int arg0)
method_29514(int arg0)
setAngerTime(int arg0)
m_7870_(int arg0)
public int
a()
getRemainingPersistentAngerTime()
method_29507()
getAngerTime()
m_6784_()
public void
a(UUID arg0)
setPersistentAngerTarget(UUID arg0)
method_29513(UUID arg0)
setAngryAt(UUID arg0)
m_6925_(UUID arg0)
public UUID
b()
getPersistentAngerTarget()
method_29508()
getAngryAt()
m_6120_()
private float
gs()
getAttackDamage()
method_22328()
getAttackDamage()
m_28877_()
public boolean
C(bsw arg0)
doHurtTarget(Entity arg0)
method_6121(class_1297 arg0)
tryAttack(Entity arg0)
m_7327_(C_507_ arg0)
public boolean
a(brp arg0, float arg1)
hurt(DamageSource arg0, float arg1)
method_5643(class_1282 arg0, float arg1)
damage(DamageSource arg0, float arg1)
m_6469_(C_489_ p_28849_, float arg1)
public Crackiness$Level
u()
getCrackiness()
method_23347()
getCrackLevel()
m_28873_()
public void
b(byte arg0)
handleEntityEvent(byte arg0)
method_5711(byte arg0)
handleStatus(byte arg0)
m_7822_(byte arg0)
public int
y()
getAttackAnimationTick()
method_6501()
getAttackTicksLeft()
m_28874_()
public void
w(boolean arg0)
offerFlower(boolean arg0)
method_6497(boolean arg0)
setLookingAtVillager(boolean lookingAtVillager)
m_28885_(boolean arg0)
protected SoundEvent
d(brp arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
m_7975_(C_489_ arg0)
protected SoundEvent
o_()
getDeathSound()
method_6002()
getDeathSound()
m_5592_()
protected InteractionResult
b(cmz arg0, bqv arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
m_6071_(C_1141_ p_28862_, C_470_ arg1)
protected void
b(iz arg0, dse arg1)
playStepSound(BlockPos arg0, BlockState arg1)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
m_7355_(C_4675_ p_28865_, C_2064_ arg1)
public int
gq()
getOfferFlowerTick()
method_6502()
getLookingAtVillagerTicks()
m_28875_()
public boolean
gr()
isPlayerCreated()
method_6496()
isPlayerCreated()
m_28876_()
public void
x(boolean arg0)
setPlayerCreated(boolean arg0)
method_6499(boolean arg0)
setPlayerCreated(boolean playerCreated)
m_28887_(boolean arg0)
public void
a(brp arg0)
die(DamageSource arg0)
method_6078(class_1282 arg0)
onDeath(DamageSource arg0)
m_6667_(C_489_ arg0)
public boolean
a(dcd arg0)
checkSpawnObstruction(LevelReader arg0)
method_5957(class_4538 arg0)
canSpawn(WorldView arg0)
m_6914_(C_1599_ arg0)
public Vec3
cM()
getLeashOffset()
method_29919()
getLeashOffset()
m_7939_()