net.minecraft.world.entity.animal

public class IronGolem

extends AbstractGolem implements NeutralMob

All mapped superinterfaces:

Nameable, EntityAccess, CommandSource, NeutralMob

bqa
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
bX
offerFlowerTick
field_6759
lookingAtVillagerTicksLeft
f_28831_
private static final UniformInt
bY
PERSISTENT_ANGER_TIME
field_25365
ANGER_TIME_RANGE
f_28827_
private int
bZ
remainingPersistentAngerTime
field_25366
angerTime
f_28828_
private UUID
ca
persistentAngerTarget
field_25367
angryAt
f_28829_

Constructor summary

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

Method summary

Modifier and TypeMethod
protected void
u()
registerGoals()
method_5959()
initGoals()
m_8099_()
protected void
a_()
defineSynchedData()
method_5693()
initDataTracker()
m_8097_()
public static AttributeSupplier$Builder
m()
createAttributes()
method_26886()
createIronGolemAttributes()
m_28883_()
protected int
m(int arg0)
decreaseAirSupply(int arg0)
method_6130(int arg0)
getNextAirUnderwater(int arg0)
m_7302_(int arg0)
protected void
B(bdr arg0)
doPush(Entity arg0)
method_6087(class_1297 arg0)
pushAway(Entity arg0)
m_7324_(C_507_ arg0)
public void
b_()
aiStep()
method_6007()
tickMovement()
m_8107_()
public boolean
a(bdv<?> arg0)
canAttackType(EntityType<?> arg0)
method_5973(class_1299<?> arg0)
canTarget(EntityType<?> arg0)
m_6549_(C_513_<?> arg0)
public void
b(qp arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
public void
a(qp 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
fO()
getAttackDamage()
method_22328()
getAttackDamage()
m_28877_()
public boolean
A(bdr arg0)
doHurtTarget(Entity arg0)
method_6121(class_1297 arg0)
tryAttack(Entity arg0)
m_7327_(C_507_ arg0)
public boolean
a(bcz 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 IronGolem$Crackiness
p()
getCrackiness()
method_23347()
getCrack()
m_28873_()
public void
a(byte arg0)
handleEntityEvent(byte arg0)
method_5711(byte arg0)
handleStatus(byte arg0)
m_7822_(byte arg0)
public int
t()
getAttackAnimationTick()
method_6501()
getAttackTicksLeft()
m_28874_()
public void
v(boolean arg0)
offerFlower(boolean arg0)
method_6497(boolean arg0)
setLookingAtVillager(boolean lookingAtVillager)
m_28885_(boolean arg0)
protected SoundEvent
c(bcz arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
m_7975_(C_489_ arg0)
protected SoundEvent
c_()
getDeathSound()
method_6002()
getDeathSound()
m_5592_()
protected InteractionResult
b(bwp arg0, bcl 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(gp arg0, cyt 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
fM()
getOfferFlowerTick()
method_6502()
getLookingAtVillagerTicks()
m_28875_()
public boolean
fN()
isPlayerCreated()
method_6496()
isPlayerCreated()
m_28876_()
public void
w(boolean arg0)
setPlayerCreated(boolean arg0)
method_6499(boolean arg0)
setPlayerCreated(boolean playerCreated)
m_28887_(boolean arg0)
public void
a(bcz arg0)
die(DamageSource arg0)
method_6078(class_1282 arg0)
onDeath(DamageSource arg0)
m_6667_(C_489_ arg0)
public boolean
a(cjz arg0)
checkSpawnObstruction(LevelReader arg0)
method_5957(class_4538 arg0)
canSpawn(WorldView arg0)
m_6914_(C_1599_ arg0)
public Vec3
cG()
getLeashOffset()
method_29919()
getLeashOffset()
m_7939_()