net.minecraft.world.entity.animal

public class IronGolem

extends AbstractGolem implements NeutralMob

All mapped superinterfaces:

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

cij
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
bZ
attackAnimationTick
field_6762
attackTicksLeft
private int
ca
offerFlowerTick
field_6759
lookingAtVillagerTicksLeft
private static final UniformInt
cb
PERSISTENT_ANGER_TIME
field_25365
ANGER_TIME_RANGE
private int
cc
remainingPersistentAngerTime
field_25366
angerTime
private UUID
cd
persistentAngerTarget
field_25367
angryAt

Constructor summary

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

Method summary

Modifier and TypeMethod
protected void
B()
registerGoals()
method_5959()
initGoals()
protected void
a(alg$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(bvk 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(bvr<?> arg0)
canAttackType(EntityType<?> arg0)
method_5973(class_1299<?> arg0)
canTarget(EntityType<?> arg0)
public void
b(ux arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
a(ux 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
gp()
getAttackDamage()
method_22328()
getAttackDamage()
public boolean
c(ash arg0, bvk arg1)
doHurtTarget(ServerLevel arg0, Entity arg1)
method_6121(class_3218 arg0, class_1297 arg1)
tryAttack(ServerWorld arg0, Entity arg1)
public boolean
a(ash arg0, bua 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(bua arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
o_()
getDeathSound()
method_6002()
getDeathSound()
protected InteractionResult
b(cpx arg0, bti arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
protected void
b(jh arg0, dxv 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
go()
isPlayerCreated()
method_6496()
isPlayerCreated()
public void
y(boolean arg0)
setPlayerCreated(boolean arg0)
method_6499(boolean arg0)
setPlayerCreated(boolean playerCreated)
public void
a(bua arg0)
die(DamageSource arg0)
method_6078(class_1282 arg0)
onDeath(DamageSource arg0)
public boolean
a(dhl arg0)
checkSpawnObstruction(LevelReader arg0)
method_5957(class_4538 arg0)
canSpawn(WorldView arg0)
public Vec3
cT()
getLeashOffset()
method_29919()
getLeashOffset()