net.minecraft.world.entity.animal

public class Pig

extends Animal implements ItemSteerable, Saddleable

All mapped superinterfaces:

Nameable, CommandSource, ItemSteerable, Saddleable

ban
net.minecraft.world.entity.animal.Pig
net.minecraft.class_1452
net.minecraft.entity.passive.PigEntity
net.minecraft.entity.passive.PigEntity
net.minecraft.server.v1_16_R3.EntityPig

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Boolean>
bo
DATA_SADDLE_ID
field_6816
SADDLED
field_184763_bv
private static final EntityDataAccessor<Integer>
bp
DATA_BOOST_TIME
field_6815
BOOST_TIME
field_191520_bx
private static final Ingredient
bq
FOOD_ITEMS
field_6817
BREEDING_INGREDIENT
field_184764_bw
private final ItemBasedSteering
br
steering
field_23230
saddledComponent
field_234214_bx_
saddleStorage

Constructor summary

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

Method summary

Modifier and TypeMethod
protected void
o()
registerGoals()
method_5959()
initGoals()
func_184651_r()
initPathfinder()
public static AttributeSupplier$Builder
eK()
createAttributes()
method_26890()
createPigAttributes()
func_234215_eI_()
public Entity
cm()
getControllingPassenger()
method_5642()
getPrimaryPassenger()
func_184179_bs()
getRidingPassenger()
public boolean
er()
canBeControlledByRider()
method_5956()
canBeControlledByRider()
func_82171_bF()
public void
a(us<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
func_184206_a(DataParameter<?> arg0)
protected void
e()
defineSynchedData()
method_5693()
initDataTracker()
func_70088_a()
initDatawatcher()
public void
b(md arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
func_213281_b(CompoundNBT arg0)
saveData(NBTTagCompound arg0)
public void
a(md arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
func_70037_a(CompoundNBT arg0)
loadData(NBTTagCompound arg0)
protected SoundEvent
I()
getAmbientSound()
method_5994()
getAmbientSound()
func_184639_G()
getSoundAmbient()
protected SoundEvent
e(apk arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
func_184601_bQ(DamageSource arg0)
getSoundHurt(DamageSource arg0)
protected SoundEvent
dq()
getDeathSound()
method_6002()
getDeathSound()
func_184615_bR()
getSoundDeath()
protected void
b(fx arg0, ceh arg1)
playStepSound(BlockPos arg0, BlockState arg1)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
func_180429_a(BlockPos arg0, BlockState arg1)
public InteractionResult
b(bfw arg0, aot arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
func_230254_b_(PlayerEntity arg0, Hand arg1)
public boolean
L_()
isSaddleable()
method_6765()
canBeSaddled()
func_230264_L__()
canSaddle()
protected void
dn()
dropEquipment()
method_16078()
dropInventory()
func_213337_cE()
dropInventory()
public boolean
M_()
isSaddled()
method_6725()
isSaddled()
func_110257_ck()
hasSaddle()
public void
a(adr arg0)
equipSaddle(SoundSource arg0)
method_6576(class_3419 arg0)
saddle(SoundCategory arg0)
func_230266_a_(SoundCategory arg0)
saddle(SoundCategory arg0)
public Vec3
b(aqm arg0)
getDismountLocationForPassenger(LivingEntity arg0)
method_24829(class_1309 arg0)
updatePassengerForDismount(LivingEntity arg0)
func_230268_c_(LivingEntity arg0)
public void
a(aag arg0, aql arg1)
thunderHit(ServerLevel arg0, LightningBolt arg1)
method_5800(class_3218 arg0, class_1538 arg1)
onStruckByLightning(ServerWorld arg0, LightningEntity arg1)
func_241841_a(ServerWorld arg0, LightningBoltEntity arg1)
onLightningStrike(WorldServer arg0, EntityLightning arg1)
public void
g(dcn arg0)
travel(Vec3 arg0)
method_6091(class_243 arg0)
travel(Vec3d arg0)
func_213352_e(Vector3d arg0)
public float
N_()
getSteeringSpeed()
method_26316()
getSaddledSpeed()
func_230265_N__()
public void
a_(dcn arg0)
travelWithInput(Vec3 arg0)
method_26315(class_243 arg0)
setMovementInput(Vec3d arg0)
func_230267_a__(Vector3d arg0)
public boolean
O_()
boost()
method_6577()
consumeOnAStickItem()
func_184762_da()
public Pig
b(aag arg0, apy arg1)
getBreedOffspring(ServerLevel arg0, AgableMob arg1)
method_6574(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
func_241840_a(ServerWorld arg0, AgeableEntity arg1)
createChild(WorldServer arg0, EntityAgeable arg1)
public boolean
k(bmb arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
func_70877_b(ItemStack arg0)
public Vec3
cf()
getLeashOffset()
method_29919()
method_29919()
func_241205_ce_()