net.minecraft.world.entity.animal

public class IronGolem

extends AbstractGolem implements NeutralMob

All mapped superinterfaces:

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

chl
net.minecraft.world.entity.animal.IronGolem
net.minecraft.class_1439
net.minecraft.entity.passive.IronGolemEntity
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
private static final int
d
IRON_INGOT_HEAL_AMOUNT
field_30338
HEALTH_PER_INGOT
private int
bY
attackAnimationTick
field_6762
attackTicksLeft
private int
bZ
offerFlowerTick
field_6759
lookingAtVillagerTicksLeft
private static final UniformInt
ca
PERSISTENT_ANGER_TIME
field_25365
ANGER_TIME_RANGE
private int
cb
remainingPersistentAngerTime
field_25366
angerTime
private UUID
cc
persistentAngerTarget
field_25367
angryAt

Constructor summary

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

Method summary

Modifier and TypeMethod
protected void
E()
registerGoals()
method_5959()
initGoals()
protected void
a(akc$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public static AttributeSupplier$Builder
m()
createAttributes()
method_26886()
createIronGolemAttributes()
protected int
l(int arg0)
decreaseAirSupply(int arg0)
method_6130(int arg0)
getNextAirUnderwater(int arg0)
protected void
D(bum arg0)
doPush(Entity arg0)
method_6087(class_1297 arg0)
pushAway(Entity arg0)
public void
d_()
aiStep()
method_6007()
tickMovement()
public boolean
bv()
canSpawnSprintParticle()
method_27298()
shouldSpawnSprintingParticles()
public boolean
a(but<?> arg0)
canAttackType(EntityType<?> arg0)
method_5973(class_1299<?> arg0)
canTarget(EntityType<?> arg0)
public void
b(tq arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
a(tq arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
public void
c()
startPersistentAngerTimer()
method_29509()
chooseRandomAngerTime()
public void
a(int arg0)
setRemainingPersistentAngerTime(int arg0)
method_29514(int arg0)
setAngerTime(int arg0)
public int
a()
getRemainingPersistentAngerTime()
method_29507()
getAngerTime()
public void
a(UUID arg0)
setPersistentAngerTarget(UUID arg0)
method_29513(UUID arg0)
setAngryAt(UUID arg0)
public UUID
b()
getPersistentAngerTarget()
method_29508()
getAngryAt()
private float
gt()
getAttackDamage()
method_22328()
getAttackDamage()
public boolean
c(ard arg0, bum arg1)
doHurtTarget(ServerLevel arg0, Entity arg1)
method_6121(class_3218 arg0, class_1297 arg1)
tryAttack(ServerWorld arg0, Entity arg1)
public boolean
a(ard arg0, btc arg1, float arg2)
hurtServer(ServerLevel arg0, DamageSource arg1, float arg2)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld arg0, DamageSource arg1, float arg2)
public Crackiness$Level
p()
getCrackiness()
method_23347()
getCrackLevel()
public void
b(byte arg0)
handleEntityEvent(byte arg0)
method_5711(byte arg0)
handleStatus(byte arg0)
public int
t()
getAttackAnimationTick()
method_6501()
getAttackTicksLeft()
public void
x(boolean arg0)
offerFlower(boolean arg0)
method_6497(boolean arg0)
setLookingAtVillager(boolean lookingAtVillager)
protected SoundEvent
e(btc arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
o_()
getDeathSound()
method_6002()
getDeathSound()
protected InteractionResult
b(coy arg0, bsk arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
protected void
b(ji arg0, dwy arg1)
playStepSound(BlockPos arg0, BlockState arg1)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
public int
x()
getOfferFlowerTick()
method_6502()
getLookingAtVillagerTicks()
public boolean
gs()
isPlayerCreated()
method_6496()
isPlayerCreated()
public void
y(boolean arg0)
setPlayerCreated(boolean arg0)
method_6499(boolean arg0)
setPlayerCreated(boolean playerCreated)
public void
a(btc arg0)
die(DamageSource arg0)
method_6078(class_1282 arg0)
onDeath(DamageSource arg0)
public boolean
a(dgm arg0)
checkSpawnObstruction(LevelReader arg0)
method_5957(class_4538 arg0)
canSpawn(WorldView arg0)
public Vec3
cT()
getLeashOffset()
method_29919()
getLeashOffset()