net.minecraft.world.entity.animal

public class Pig

extends Animal implements ItemSteerable, Saddleable

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, ScoreHolder, Attackable, EquipmentUser, Leashable, Targeting, ItemSteerable, Saddleable

chq
net.minecraft.world.entity.animal.Pig
net.minecraft.class_1452
net.minecraft.entity.passive.PigEntity
net.minecraft.world.entity.animal.EntityPig

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Boolean>
bY
DATA_SADDLE_ID
field_6816
SADDLED
private static final EntityDataAccessor<Integer>
bZ
DATA_BOOST_TIME
field_6815
BOOST_TIME
private final ItemBasedSteering
ca
steering
field_23230
saddledComponent

Constructor summary

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

Method summary

Modifier and TypeMethod
protected void
E()
registerGoals()
method_5959()
initGoals()
public static AttributeSupplier$Builder
p()
createAttributes()
method_26890()
createPigAttributes()
public LivingEntity
cW()
getControllingPassenger()
method_5642()
getControllingPassenger()
public void
a(ajy<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
protected void
a(akc$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder 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)
protected SoundEvent
u()
getAmbientSound()
method_5994()
getAmbientSound()
protected SoundEvent
e(btc arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
o_()
getDeathSound()
method_6002()
getDeathSound()
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 InteractionResult
b(coy arg0, bsk arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
public boolean
f()
isSaddleable()
method_6765()
canBeSaddled()
protected void
f(ard arg0)
dropEquipment(ServerLevel arg0)
method_16078(class_3218 arg0)
dropInventory(ServerWorld arg0)
public boolean
j()
isSaddled()
method_6725()
isSaddled()
public void
a(cwq arg0, awb arg1)
equipSaddle(ItemStack arg0, SoundSource arg1)
method_6576(class_1799 arg0, class_3419 arg1)
saddle(ItemStack arg0, SoundCategory arg1)
public Vec3
b(bvi arg0)
getDismountLocationForPassenger(LivingEntity arg0)
method_24829(class_1309 arg0)
updatePassengerForDismount(LivingEntity arg0)
public void
a(ard arg0, bvh arg1)
thunderHit(ServerLevel arg0, LightningBolt arg1)
method_5800(class_3218 arg0, class_1538 arg1)
onStruckByLightning(ServerWorld arg0, LightningEntity arg1)
protected void
a(coy arg0, fbb arg1)
tickRidden(Player arg0, Vec3 arg1)
method_49481(class_1657 arg0, class_243 arg1)
tickControlled(PlayerEntity arg0, Vec3d arg1)
protected Vec3
b(coy arg0, fbb arg1)
getRiddenInput(Player arg0, Vec3 arg1)
method_49482(class_1657 arg0, class_243 arg1)
getControlledMovementInput(PlayerEntity arg0, Vec3d arg1)
protected float
e(coy arg0)
getRiddenSpeed(Player arg0)
method_49485(class_1657 arg0)
getSaddledSpeed(PlayerEntity arg0)
public boolean
a()
boost()
method_6577()
consumeOnAStickItem()
public Pig
b(ard arg0, bud arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_6574(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
public boolean
j(cwq arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
public Vec3
cT()
getLeashOffset()
method_29919()
getLeashOffset()