Package net.minecraft.entity.mob
Class PiglinEntity
- All Implemented Interfaces:
RangedAttackMob,CrossbowUser,Monster,CommandOutput,Nameable,EntityLike
public class PiglinEntity extends AbstractPiglinEntity implements CrossbowUser
- Mappings:
Namespace Name official bhbintermediary net/minecraft/class_4836named net/minecraft/entity/mob/PiglinEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason -
Field Summary
Fields Modifier and Type Field Description private static TrackedData<Boolean>BABYprivate static EntityAttributeModifierBABY_SPEED_BOOSTprivate static UUIDBABY_SPEED_BOOST_IDprivate booleancannotHuntprivate static TrackedData<Boolean>CHARGINGprivate static TrackedData<Boolean>DANCINGprivate SimpleInventoryinventoryprotected static ImmutableList<MemoryModuleType<?>>MEMORY_MODULE_TYPESprotected static ImmutableList<SensorType<? extends Sensor<? super PiglinEntity>>>SENSOR_TYPESFields inherited from class net.minecraft.entity.mob.AbstractPiglinEntity
IMMUNE_TO_ZOMBIFICATION, timeInOverworldFields inherited from class net.minecraft.entity.mob.MobEntity
ambientSoundChance, armorDropChances, experiencePoints, goalSelector, handDropChances, jumpControl, lookControl, moveControl, navigation, targetSelectorFields inherited from class net.minecraft.entity.LivingEntity
activeItemStack, attackingPlayer, bodyTrackingIncrements, bodyYaw, brain, dead, deathTime, defaultMaxHealth, despawnCounter, field_6215, flyingSpeed, forwardSpeed, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, hurtTime, itemUseTimeLeft, jumping, knockbackVelocity, lastAttackedTicks, lastDamageTaken, lastHandSwingProgress, lastLimbDistance, limbAngle, limbDistance, LIVING_FLAGS, lookDirection, maxHurtTime, playerHitTimer, preferredHand, prevBodyYaw, prevHeadYaw, prevLookDirection, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, riptideTicks, roll, scoreAmount, serverHeadYaw, serverPitch, serverX, serverY, serverYaw, serverZ, sidewaysSpeed, SLEEPING_DIMENSIONS, stepBobbingAmount, stuckArrowTimer, stuckStingerTimer, upwardSpeedFields inherited from class net.minecraft.entity.Entity
age, dataTracker, distanceTraveled, fallDistance, field_28627, field_28629, firstUpdate, FLAGS, fluidHeight, glowing, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inNetherPortal, inPowderSnow, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, LOGGER, movementMultiplier, netherPortalTime, noClip, onGround, pitch, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, ridingCooldown, stepHeight, submergedFluidTag, submergedInWater, timeUntilRegen, touchingWater, uuid, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, world, yawFields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY -
Constructor Summary
Constructors Constructor Description PiglinEntity(EntityType<? extends AbstractPiglinEntity> type, World world) -
Method Summary
Modifier and Type Method Description protected ItemStackaddItem(ItemStack stack)voidattack(LivingEntity target, float pullProgress)protected booleancanEquipStack(ItemStack stack)Returns whether this piglin can equip into or replace current equipment slot.booleancanGather(ItemStack stack)protected booleancanHunt()booleancanImmediatelyDespawn(double distanceSquared)protected booleancanInsertIntoInventory(ItemStack stack)static booleancanSpawn(EntityType<PiglinEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)booleancanUseRangedWeapon(RangedWeaponItem weapon)protected Brain.Profile<PiglinEntity>createBrainProfile()static DefaultAttributeContainer.BuildercreatePiglinAttributes()booleandamage(DamageSource source, float amount)protected Brain<?>deserializeBrain(com.mojang.serialization.Dynamic<?> dynamic)protected voiddropEquipment(DamageSource source, int lootingMultiplier, boolean allowDrops)private voidequipAtChance(EquipmentSlot slot, ItemStack stack)protected voidequipToMainHand(ItemStack stack)protected voidequipToOffHand(ItemStack stack)protected floatgetActiveEyeHeight(EntityPose pose, EntityDimensions dimensions)PiglinActivitygetActivity()protected SoundEventgetAmbientSound()Brain<PiglinEntity>getBrain()protected intgetCurrentExperience(PlayerEntity player)protected SoundEventgetDeathSound()protected SoundEventgetHurtSound(DamageSource source)doublegetMountedHeightOffset()private EntitygetTopMostPassenger(Entity entity, int maxLevel)Returns the passenger entity atmaxLevelin a stacked riding (riding on an entity that is riding on another entity, etc).protected voidinitDataTracker()protected voidinitEquipment(LocalDifficulty difficulty)@Nullable EntityDatainitialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable CompoundTag entityTag)ActionResultinteractMob(PlayerEntity player, Hand hand)booleanisBaby()private booleanisCharging()booleanisDancing()protected booleanisDisallowedInPeaceful()protected voidloot(ItemEntity item)private ItemStackmakeInitialWeapon()protected voidmobTick()voidonTrackedDataSet(TrackedData<?> data)protected voidplaySound(SoundEvent sound)protected voidplayStepSound(BlockPos pos, BlockState state)protected voidplayZombificationSound()voidpostShoot()protected booleanprefersNewEquipment(ItemStack newStack, ItemStack oldStack)voidreadCustomDataFromNbt(CompoundTag tag)voidsetBaby(boolean baby)private voidsetCannotHunt(boolean cannotHunt)voidsetCharging(boolean charging)voidsetDancing(boolean dancing)voidshoot(LivingEntity target, ItemStack crossbow, ProjectileEntity projectile, float multiShotSpray)booleanstartRiding(Entity entity, boolean force)voidwriteCustomDataToNbt(CompoundTag tag)protected voidzombify(ServerWorld world)Methods inherited from class net.minecraft.entity.mob.AbstractPiglinEntity
getHeightOffset, getTarget, isAdult, isHoldingTool, isImmuneToZombification, playAmbientSound, sendAiDebugData, setImmuneToZombification, shouldZombifyMethods inherited from class net.minecraft.entity.mob.HostileEntity
canDropLootAndXp, canSpawnIgnoreLightLevel, canSpawnInDark, createHostileAttributes, getArrowType, getFallSound, getPathfindingFavor, getSoundCategory, getSplashSound, getSwimSound, isAngryAt, isSpawnDark, shouldDropLoot, tickMovement, updateDespawnCounterMethods inherited from class net.minecraft.entity.mob.PathAwareEntity
canSpawn, getPathfindingFavor, getRunFromLeashSpeed, isNavigating, updateForLeashLength, updateLeashMethods inherited from class net.minecraft.entity.mob.MobEntity
attachLeash, baseTick, canBeControlledByRider, canBeLeashedBy, canEquip, canMobSpawn, canMoveVoluntarily, cannotDespawn, canPickupItem, canPickUpLoot, canSpawn, canTarget, canTarget, checkDespawn, convertTo, createBodyControl, createMobAttributes, createNavigation, detachLeash, dropLoot, enchantEquipment, enchantMainHandItem, equipLootStack, equipStack, getArmorItems, getBodyYawSpeed, getDropChance, getEquipmentForSlot, getEquippedStack, getHoldingEntity, getItemsHand, getJumpControl, getLimitPerChunk, getLookControl, getLookPitchSpeed, getLookYawSpeed, getLootContextBuilder, getLootTable, getLootTableId, getMainArm, getMinAmbientSoundDelay, getMoveControl, getNavigation, getPathfindingPenalty, getPickBlockStack, getPositionTarget, getPositionTargetRange, getSafeFallDistance, getVisibilityCache, handleStatus, hasPositionTarget, initGoals, interact, isAffectedByDaylight, isAiDisabled, isAttacking, isInWalkTargetRange, isInWalkTargetRange, isLeashed, isLeftHanded, isLogicalSideForUpdatingMovement, isPersistent, lookAtEntity, method_29244, method_33191, movesIndependently, onEatingGrass, onPlayerSpawnedChild, playHurtSound, playSpawnEffects, prefersNewDamageableItem, removeFromDimension, setAiDisabled, setAttacking, setCanPickUpLoot, setEquipmentDropChance, setForwardSpeed, setHoldingEntityId, setLeftHanded, setMovementSpeed, setPathfindingPenalty, setPersistent, setPositionTarget, setSidewaysSpeed, setTarget, setUpwardSpeed, spawnsTooManyForEachTry, swimUpward, tick, tickNewAi, tryAttack, tryEquip, turnHead, updateDropChances, updateEnchantments, updateGoalControlsMethods inherited from class net.minecraft.entity.LivingEntity
addPowderSnowSlowIfNeeded, addSoulSpeedBoostIfNeeded, addStatusEffect, animateDamage, applyArmorToDamage, applyDamage, applyEnchantmentsToDamage, applyMovementEffects, applyStatusEffect, attackLivingEntity, canBeRiddenInWater, canBreatheInWater, canFreeze, canHaveStatusEffect, canSee, canTakeDamage, canWalkOnFluid, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, collides, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createLivingAttributes, createSpawnPacket, damageArmor, damageShield, displaySoulSpeedEffects, drop, dropInventory, dropXp, eatFood, endCombat, enterCombat, fall, getAbsorptionAmount, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getBaseMovementSpeedMultiplier, getBlockState, getBoundingBox, getClimbingPos, getCommandItemSlot, getDamageTracker, getDespawnCounter, getDimensions, getDrinkSound, getEatSound, getEyeHeight, getGroup, getHandSwingProgress, getHeadYaw, getHealth, getItemUseTime, getItemUseTimeLeft, getJumpVelocity, getLastAttackedTime, getLastAttackTime, getLeaningPitch, getMainHandStack, getMaxHealth, getMovementSpeed, getNextAirOnLand, getNextAirUnderwater, getOffHandStack, getPoses, getPreferredEquipmentSlot, getPrimeAdversary, getRandom, getRecentDamageSource, getRoll, getScaleFactor, getSleepingDirection, getSleepingPosition, getSoundPitch, getSoundVolume, getStackInHand, getStatusEffect, getStatusEffects, getStingerCount, getStuckArrowCount, getVelocityMultiplier, getVisibilityBoundingBox, getYaw, handleFallDamage, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isBlocking, isClimbing, isDead, isFallFlying, isHolding, isHolding, isHoldingOntoLadder, isImmobile, isInsideWall, isInSwimmingPose, isMobOrPlayer, isOnSoulSpeedBlock, isPushable, isSleeping, isTarget, isUndead, isUsingItem, isUsingRiptide, jump, kill, knockback, knockDownwards, lookAt, markEffectsDirty, method_26317, method_26318, method_29500, method_31079, method_33579, onAttacking, onDeath, onEquipStack, onKilledBy, onStatusEffectApplied, onStatusEffectRemoved, onStatusEffectUpgraded, playBlockFallSound, positionInPortal, pushAway, pushAwayFrom, removePowderSnowSlow, removeSoulSpeedBoost, removeStatusEffect, removeStatusEffectInternal, scheduleVelocityUpdate, sendEquipmentBreakStatus, sendPickup, sendToolBreakStatus, setAbsorptionAmount, setAttacker, setAttacking, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setNearbySongPlaying, setOnGround, setRiptideTicks, setSleepingPosition, setSprinting, setStackInHand, setStingerCount, setStuckArrowCount, setYaw, shouldAlwaysDropXp, shouldDisplaySoulSpeedEffects, shouldRenderName, shouldSwimInFluids, sleep, spawnConsumptionEffects, stopRiding, stopUsingItem, swingHand, swingHand, takeKnockback, takeShieldHit, teleport, tickCramming, tickHandSwing, tickInVoid, tickRiding, tickRiptide, tickStatusEffects, travel, triggerItemPickedUpByEntityCriteria, updateLimbs, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, updateTrackedPositionAndAngles, wakeUpMethods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addFlapEffects, addPassenger, addScoreboardTag, addVelocity, adjustMovementForCollisions, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, adjustSingleAxisMovementForCollisions, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeSpectated, canExplosionDestroyBlock, canFly, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, dealDamage, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, extinguish, getAir, getBlockPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraBlockPos, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCustomName, getDataTracker, getDefaultName, getDefaultNetherPortalCooldown, getDisplayName, getEffectiveExplosionResistance, getEntityName, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getGameEventHandler, getHeight, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getItemsEquipped, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getMoveEffect, getMovementDirection, getName, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPortalRect, getPos, getPose, getPrimaryPassenger, getRandomBodyY, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSavedEntityId, getScoreboardTags, getScoreboardTeam, getServer, getStandingEyeHeight, getSwimHeight, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getWidth, getX, getY, getZ, handleAttack, hasCustomName, hashCode, hasNetherPortalCooldown, hasNoGravity, hasPassenger, hasPassengerDeep, hasPassengers, hasPassengerType, hasPermissionLevel, hasPlayerRider, hasVehicle, hasWings, interactAt, isAttackable, isCollidable, isConnectedThroughVehicle, isCustomNameVisible, isDescending, isFireImmune, isFreezing, isGlowing, isImmuneToExplosion, isInLava, isInRange, isInsideWaterOrBubbleColumn, isInSneakingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isOnFire, isOnGround, isPartOf, isPlayer, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, method_29919, method_30951, method_33332, method_33574, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onKilledOther, onPassengerLookAround, onPlayerCollision, onSpawnPacket, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playSound, playSwimSound, populateCrashReport, pushOutOfBlocks, raycast, readNbt, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, removeAllPassengers, removePassenger, removeScoreboardTag, requestTeleport, requestTeleportAndDismount, resetNetherPortalCooldown, resetPosition, saveSelfToTag, saveToTag, sendSystemMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFireTicks, setFlag, setFrozenTicks, setGlowing, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setListener, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setPos, setPose, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, shouldBroadcastConsoleToOps, shouldLeaveSwimmingPose, shouldReceiveFeedback, shouldRender, shouldRender, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredHorizontalLength, startRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, tickNetherPortal, tickNetherPortalCooldown, toListTag, toListTag, toString, unsetRemoved, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSwimming, updateTrackedPosition, updateTrackedPosition, updateVelocity, updateWaterState, wouldPoseNotCollide, writeNbtMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.entity.CrossbowUser
getProjectileLaunchVelocity, getTarget, shoot, shoot
-
Field Details
-
BABY
- Mappings:
Namespace Name Mixin selector official bnLbhb;bn:Lvu;intermediary field_22377Lnet/minecraft/class_4836;field_22377:Lnet/minecraft/class_2940;named BABYLnet/minecraft/entity/mob/PiglinEntity;BABY:Lnet/minecraft/entity/data/TrackedData;
-
CHARGING
- Mappings:
Namespace Name Mixin selector official boLbhb;bo:Lvu;intermediary field_22378Lnet/minecraft/class_4836;field_22378:Lnet/minecraft/class_2940;named CHARGINGLnet/minecraft/entity/mob/PiglinEntity;CHARGING:Lnet/minecraft/entity/data/TrackedData;
-
DANCING
- Mappings:
Namespace Name Mixin selector official bpLbhb;bp:Lvu;intermediary field_25164Lnet/minecraft/class_4836;field_25164:Lnet/minecraft/class_2940;named DANCINGLnet/minecraft/entity/mob/PiglinEntity;DANCING:Lnet/minecraft/entity/data/TrackedData;
-
BABY_SPEED_BOOST_ID
- Mappings:
Namespace Name Mixin selector official bqLbhb;bq:Ljava/util/UUID;intermediary field_22379Lnet/minecraft/class_4836;field_22379:Ljava/util/UUID;named BABY_SPEED_BOOST_IDLnet/minecraft/entity/mob/PiglinEntity;BABY_SPEED_BOOST_ID:Ljava/util/UUID;
-
BABY_SPEED_BOOST
- Mappings:
Namespace Name Mixin selector official brLbhb;br:Lasz;intermediary field_22380Lnet/minecraft/class_4836;field_22380:Lnet/minecraft/class_1322;named BABY_SPEED_BOOSTLnet/minecraft/entity/mob/PiglinEntity;BABY_SPEED_BOOST:Lnet/minecraft/entity/attribute/EntityAttributeModifier;
-
SENSOR_TYPES
protected static final ImmutableList<SensorType<? extends Sensor<? super PiglinEntity>>> SENSOR_TYPES- Mappings:
Namespace Name Mixin selector official dLbhb;d:Lcom/google/common/collect/ImmutableList;intermediary field_22376Lnet/minecraft/class_4836;field_22376:Lcom/google/common/collect/ImmutableList;named SENSOR_TYPESLnet/minecraft/entity/mob/PiglinEntity;SENSOR_TYPES:Lcom/google/common/collect/ImmutableList;
-
MEMORY_MODULE_TYPES
- Mappings:
Namespace Name Mixin selector official bmLbhb;bm:Lcom/google/common/collect/ImmutableList;intermediary field_22381Lnet/minecraft/class_4836;field_22381:Lcom/google/common/collect/ImmutableList;named MEMORY_MODULE_TYPESLnet/minecraft/entity/mob/PiglinEntity;MEMORY_MODULE_TYPES:Lcom/google/common/collect/ImmutableList;
-
inventory
- Mappings:
Namespace Name Mixin selector official bsLbhb;bs:Laqo;intermediary field_22371Lnet/minecraft/class_4836;field_22371:Lnet/minecraft/class_1277;named inventoryLnet/minecraft/entity/mob/PiglinEntity;inventory:Lnet/minecraft/inventory/SimpleInventory;
-
cannotHunt
private boolean cannotHunt- Mappings:
Namespace Name Mixin selector official btLbhb;bt:Zintermediary field_23738Lnet/minecraft/class_4836;field_23738:Znamed cannotHuntLnet/minecraft/entity/mob/PiglinEntity;cannotHunt:Z
-
-
Constructor Details
-
PiglinEntity
- Mappings:
Namespace Name Mixin selector official <init>Laro;<init>(Lars;Lbuq;)Vintermediary <init>Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)Vnamed <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
-
-
Method Details
-
writeCustomDataToNbt
- Overrides:
writeCustomDataToNbtin classAbstractPiglinEntity- Mappings:
Namespace Name Mixin selector official bLaro;b(Lmr;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)Vnamed writeCustomDataToNbtLnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/CompoundTag;)V
-
readCustomDataFromNbt
- Overrides:
readCustomDataFromNbtin classAbstractPiglinEntity- Mappings:
Namespace Name Mixin selector official aLaro;a(Lmr;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)Vnamed readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/CompoundTag;)V
-
dropEquipment
- Overrides:
dropEquipmentin classMobEntity- Mappings:
Namespace Name Mixin selector official aLasb;a(Laqy;IZ)Vintermediary method_6099Lnet/minecraft/class_1309;method_6099(Lnet/minecraft/class_1282;IZ)Vnamed dropEquipmentLnet/minecraft/entity/LivingEntity;dropEquipment(Lnet/minecraft/entity/damage/DamageSource;IZ)V
-
addItem
- Mappings:
Namespace Name Mixin selector official kLbhb;k(Lboq;)Lboq;intermediary method_24711Lnet/minecraft/class_4836;method_24711(Lnet/minecraft/class_1799;)Lnet/minecraft/class_1799;named addItemLnet/minecraft/entity/mob/PiglinEntity;addItem(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;
-
canInsertIntoInventory
- Mappings:
Namespace Name Mixin selector official lLbhb;l(Lboq;)Zintermediary method_27085Lnet/minecraft/class_4836;method_27085(Lnet/minecraft/class_1799;)Znamed canInsertIntoInventoryLnet/minecraft/entity/mob/PiglinEntity;canInsertIntoInventory(Lnet/minecraft/item/ItemStack;)Z
-
initDataTracker
protected void initDataTracker()- Overrides:
initDataTrackerin classAbstractPiglinEntity- Mappings:
Namespace Name Mixin selector official eLaro;e()Vintermediary method_5693Lnet/minecraft/class_1297;method_5693()Vnamed initDataTrackerLnet/minecraft/entity/Entity;initDataTracker()V
-
onTrackedDataSet
- Overrides:
onTrackedDataSetin classLivingEntity- Mappings:
Namespace Name Mixin selector official aLaro;a(Lvu;)Vintermediary method_5674Lnet/minecraft/class_1297;method_5674(Lnet/minecraft/class_2940;)Vnamed onTrackedDataSetLnet/minecraft/entity/Entity;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
-
createPiglinAttributes
- Mappings:
Namespace Name Mixin selector official fsLbhb;fs()Lata$a;intermediary method_26953Lnet/minecraft/class_4836;method_26953()Lnet/minecraft/class_5132$class_5133;named createPiglinAttributesLnet/minecraft/entity/mob/PiglinEntity;createPiglinAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
-
canSpawn
public static boolean canSpawn(EntityType<PiglinEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)- Mappings:
Namespace Name Mixin selector official bLbhb;b(Lars;Lbur;Lase;Lfx;Ljava/util/Random;)Zintermediary method_24695Lnet/minecraft/class_4836;method_24695(Lnet/minecraft/class_1299;Lnet/minecraft/class_1936;Lnet/minecraft/class_3730;Lnet/minecraft/class_2338;Ljava/util/Random;)Znamed canSpawnLnet/minecraft/entity/mob/PiglinEntity;canSpawn(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)Z
-
initialize
@Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData, @Nullable @Nullable CompoundTag entityTag)- Overrides:
initializein classMobEntity- Mappings:
Namespace Name Mixin selector official aLasc;a(Lbve;Laqh;Lase;Lass;Lmr;)Lass;intermediary method_5943Lnet/minecraft/class_1308;method_5943(Lnet/minecraft/class_5425;Lnet/minecraft/class_1266;Lnet/minecraft/class_3730;Lnet/minecraft/class_1315;Lnet/minecraft/class_2487;)Lnet/minecraft/class_1315;named initializeLnet/minecraft/entity/mob/MobEntity;initialize(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/world/LocalDifficulty;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/entity/EntityData;Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/entity/EntityData;
-
isDisallowedInPeaceful
protected boolean isDisallowedInPeaceful()- Overrides:
isDisallowedInPeacefulin classHostileEntity- Mappings:
Namespace Name Mixin selector official PLasc;P()Zintermediary method_23734Lnet/minecraft/class_1308;method_23734()Znamed isDisallowedInPeacefulLnet/minecraft/entity/mob/MobEntity;isDisallowedInPeaceful()Z
-
canImmediatelyDespawn
public boolean canImmediatelyDespawn(double distanceSquared)- Overrides:
canImmediatelyDespawnin classMobEntity- Mappings:
Namespace Name Mixin selector official hLasc;h(D)Zintermediary method_5974Lnet/minecraft/class_1308;method_5974(D)Znamed canImmediatelyDespawnLnet/minecraft/entity/mob/MobEntity;canImmediatelyDespawn(D)Z
-
initEquipment
- Overrides:
initEquipmentin classMobEntity- Mappings:
Namespace Name Mixin selector official aLasc;a(Laqh;)Vintermediary method_5964Lnet/minecraft/class_1308;method_5964(Lnet/minecraft/class_1266;)Vnamed initEquipmentLnet/minecraft/entity/mob/MobEntity;initEquipment(Lnet/minecraft/world/LocalDifficulty;)V
-
equipAtChance
- Mappings:
Namespace Name Mixin selector official cLbhb;c(Lart;Lboq;)Vintermediary method_24696Lnet/minecraft/class_4836;method_24696(Lnet/minecraft/class_1304;Lnet/minecraft/class_1799;)Vnamed equipAtChanceLnet/minecraft/entity/mob/PiglinEntity;equipAtChance(Lnet/minecraft/entity/EquipmentSlot;Lnet/minecraft/item/ItemStack;)V
-
createBrainProfile
- Overrides:
createBrainProfilein classLivingEntity- Mappings:
Namespace Name Mixin selector official dhLasb;dh()Lasv$b;intermediary method_28306Lnet/minecraft/class_1309;method_28306()Lnet/minecraft/class_4095$class_5303;named createBrainProfileLnet/minecraft/entity/LivingEntity;createBrainProfile()Lnet/minecraft/entity/ai/brain/Brain$Profile;
-
deserializeBrain
- Overrides:
deserializeBrainin classLivingEntity- Mappings:
Namespace Name Mixin selector official aLasb;a(Lcom/mojang/serialization/Dynamic;)Lasv;intermediary method_18867Lnet/minecraft/class_1309;method_18867(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/class_4095;named deserializeBrainLnet/minecraft/entity/LivingEntity;deserializeBrain(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/entity/ai/brain/Brain;
-
getBrain
- Overrides:
getBrainin classLivingEntity- Mappings:
Namespace Name Mixin selector official dgLasb;dg()Lasv;intermediary method_18868Lnet/minecraft/class_1309;method_18868()Lnet/minecraft/class_4095;named getBrainLnet/minecraft/entity/LivingEntity;getBrain()Lnet/minecraft/entity/ai/brain/Brain;
-
interactMob
- Overrides:
interactMobin classMobEntity- Mappings:
Namespace Name Mixin selector official bLasc;b(Lbif;Laqi;)Laqj;intermediary method_5992Lnet/minecraft/class_1308;method_5992(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;named interactMobLnet/minecraft/entity/mob/MobEntity;interactMob(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
-
getActiveEyeHeight
- Overrides:
getActiveEyeHeightin classLivingEntity- Mappings:
Namespace Name Mixin selector official bLasb;b(Lasm;Larp;)Fintermediary method_18394Lnet/minecraft/class_1309;method_18394(Lnet/minecraft/class_4050;Lnet/minecraft/class_4048;)Fnamed getActiveEyeHeightLnet/minecraft/entity/LivingEntity;getActiveEyeHeight(Lnet/minecraft/entity/EntityPose;Lnet/minecraft/entity/EntityDimensions;)F
-
getMountedHeightOffset
public double getMountedHeightOffset()- Overrides:
getMountedHeightOffsetin classEntity- Mappings:
Namespace Name Mixin selector official bhLaro;bh()Dintermediary method_5621Lnet/minecraft/class_1297;method_5621()Dnamed getMountedHeightOffsetLnet/minecraft/entity/Entity;getMountedHeightOffset()D
-
setBaby
public void setBaby(boolean baby) -
isBaby
public boolean isBaby()- Overrides:
isBabyin classLivingEntity- Mappings:
Namespace Name Mixin selector official y_Lasb;y_()Zintermediary method_6109Lnet/minecraft/class_1309;method_6109()Znamed isBabyLnet/minecraft/entity/LivingEntity;isBaby()Z
-
setCannotHunt
private void setCannotHunt(boolean cannotHunt)- Mappings:
Namespace Name Mixin selector official wLbhb;w(Z)Vintermediary method_26954Lnet/minecraft/class_4836;method_26954(Z)Vnamed setCannotHuntLnet/minecraft/entity/mob/PiglinEntity;setCannotHunt(Z)V
-
canHunt
protected boolean canHunt()- Specified by:
canHuntin classAbstractPiglinEntity- Mappings:
Namespace Name Mixin selector official mLbha;m()Zintermediary method_26952Lnet/minecraft/class_5418;method_26952()Znamed canHuntLnet/minecraft/entity/mob/AbstractPiglinEntity;canHunt()Z
-
mobTick
protected void mobTick()- Overrides:
mobTickin classAbstractPiglinEntity- Mappings:
Namespace Name Mixin selector official eOLasc;eO()Vintermediary method_5958Lnet/minecraft/class_1308;method_5958()Vnamed mobTickLnet/minecraft/entity/mob/MobEntity;mobTick()V
-
getCurrentExperience
- Overrides:
getCurrentExperiencein classMobEntity- Mappings:
Namespace Name Mixin selector official dLasb;d(Lbif;)Iintermediary method_6110Lnet/minecraft/class_1309;method_6110(Lnet/minecraft/class_1657;)Inamed getCurrentExperienceLnet/minecraft/entity/LivingEntity;getCurrentExperience(Lnet/minecraft/entity/player/PlayerEntity;)I
-
zombify
- Overrides:
zombifyin classAbstractPiglinEntity- Mappings:
Namespace Name Mixin selector official cLbha;c(Labf;)Vintermediary method_24694Lnet/minecraft/class_5418;method_24694(Lnet/minecraft/class_3218;)Vnamed zombifyLnet/minecraft/entity/mob/AbstractPiglinEntity;zombify(Lnet/minecraft/server/world/ServerWorld;)V
-
makeInitialWeapon
- Mappings:
Namespace Name Mixin selector official fuLbhb;fu()Lboq;intermediary method_24702Lnet/minecraft/class_4836;method_24702()Lnet/minecraft/class_1799;named makeInitialWeaponLnet/minecraft/entity/mob/PiglinEntity;makeInitialWeapon()Lnet/minecraft/item/ItemStack;
-
isCharging
private boolean isCharging()- Mappings:
Namespace Name Mixin selector official fvLbhb;fv()Zintermediary method_24703Lnet/minecraft/class_4836;method_24703()Znamed isChargingLnet/minecraft/entity/mob/PiglinEntity;isCharging()Z
-
setCharging
public void setCharging(boolean charging)- Specified by:
setChargingin interfaceCrossbowUser- Mappings:
Namespace Name Mixin selector official bLbfm;b(Z)Vintermediary method_7110Lnet/minecraft/class_3745;method_7110(Z)Vnamed setChargingLnet/minecraft/entity/CrossbowUser;setCharging(Z)V
-
postShoot
public void postShoot()- Specified by:
postShootin interfaceCrossbowUser- Mappings:
Namespace Name Mixin selector official V_Lbfm;V_()Vintermediary method_24651Lnet/minecraft/class_3745;method_24651()Vnamed postShootLnet/minecraft/entity/CrossbowUser;postShoot()V
-
getActivity
- Specified by:
getActivityin classAbstractPiglinEntity- Mappings:
Namespace Name Mixin selector official fnLbha;fn()Lbhd;intermediary method_24705Lnet/minecraft/class_5418;method_24705()Lnet/minecraft/class_4837;named getActivityLnet/minecraft/entity/mob/AbstractPiglinEntity;getActivity()Lnet/minecraft/entity/mob/PiglinActivity;
-
isDancing
public boolean isDancing()- Mappings:
Namespace Name Mixin selector official ftLbhb;ft()Zintermediary method_29272Lnet/minecraft/class_4836;method_29272()Znamed isDancingLnet/minecraft/entity/mob/PiglinEntity;isDancing()Z
-
setDancing
public void setDancing(boolean dancing)- Mappings:
Namespace Name Mixin selector official vLbhb;v(Z)Vintermediary method_29274Lnet/minecraft/class_4836;method_29274(Z)Vnamed setDancingLnet/minecraft/entity/mob/PiglinEntity;setDancing(Z)V
-
damage
- Overrides:
damagein classLivingEntity- Mappings:
Namespace Name Mixin selector official aLaro;a(Laqy;F)Zintermediary method_5643Lnet/minecraft/class_1297;method_5643(Lnet/minecraft/class_1282;F)Znamed damageLnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Z
-
attack
- Specified by:
attackin interfaceRangedAttackMob- Mappings:
Namespace Name Mixin selector official aLbgd;a(Lasb;F)Vintermediary method_7105Lnet/minecraft/class_1603;method_7105(Lnet/minecraft/class_1309;F)Vnamed attackLnet/minecraft/entity/ai/RangedAttackMob;attack(Lnet/minecraft/entity/LivingEntity;F)V
-
shoot
public void shoot(LivingEntity target, ItemStack crossbow, ProjectileEntity projectile, float multiShotSpray)- Specified by:
shootin interfaceCrossbowUser- Mappings:
Namespace Name Mixin selector official aLbfm;a(Lasb;Lboq;Lbiv;F)Vintermediary method_18811Lnet/minecraft/class_3745;method_18811(Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;Lnet/minecraft/class_1676;F)Vnamed shootLnet/minecraft/entity/CrossbowUser;shoot(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/projectile/ProjectileEntity;F)V
-
canUseRangedWeapon
- Overrides:
canUseRangedWeaponin classMobEntity- Mappings:
Namespace Name Mixin selector official aLasc;a(Lbpe;)Zintermediary method_25938Lnet/minecraft/class_1308;method_25938(Lnet/minecraft/class_1811;)Znamed canUseRangedWeaponLnet/minecraft/entity/mob/MobEntity;canUseRangedWeapon(Lnet/minecraft/item/RangedWeaponItem;)Z
-
equipToMainHand
- Mappings:
Namespace Name Mixin selector official mLbhb;m(Lboq;)Vintermediary method_24844Lnet/minecraft/class_4836;method_24844(Lnet/minecraft/class_1799;)Vnamed equipToMainHandLnet/minecraft/entity/mob/PiglinEntity;equipToMainHand(Lnet/minecraft/item/ItemStack;)V
-
equipToOffHand
- Mappings:
Namespace Name Mixin selector official nLbhb;n(Lboq;)Vintermediary method_24845Lnet/minecraft/class_4836;method_24845(Lnet/minecraft/class_1799;)Vnamed equipToOffHandLnet/minecraft/entity/mob/PiglinEntity;equipToOffHand(Lnet/minecraft/item/ItemStack;)V
-
canGather
-
canEquipStack
Returns whether this piglin can equip into or replace current equipment slot.- Mappings:
Namespace Name Mixin selector official oLbhb;o(Lboq;)Zintermediary method_24846Lnet/minecraft/class_4836;method_24846(Lnet/minecraft/class_1799;)Znamed canEquipStackLnet/minecraft/entity/mob/PiglinEntity;canEquipStack(Lnet/minecraft/item/ItemStack;)Z
-
prefersNewEquipment
- Overrides:
prefersNewEquipmentin classMobEntity- Mappings:
Namespace Name Mixin selector official aLasc;a(Lboq;Lboq;)Zintermediary method_5955Lnet/minecraft/class_1308;method_5955(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Znamed prefersNewEquipmentLnet/minecraft/entity/mob/MobEntity;prefersNewEquipment(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
-
loot
-
startRiding
- Overrides:
startRidingin classMobEntity- Mappings:
Namespace Name Mixin selector official aLaro;a(Laro;Z)Zintermediary method_5873Lnet/minecraft/class_1297;method_5873(Lnet/minecraft/class_1297;Z)Znamed startRidingLnet/minecraft/entity/Entity;startRiding(Lnet/minecraft/entity/Entity;Z)Z
-
getTopMostPassenger
Returns the passenger entity atmaxLevelin a stacked riding (riding on an entity that is riding on another entity, etc).If the number of stacked entities is less than
maxLevel, returns the top most passenger entity.- Mappings:
Namespace Name Mixin selector official bLbhb;b(Laro;I)Laro;intermediary method_26089Lnet/minecraft/class_4836;method_26089(Lnet/minecraft/class_1297;I)Lnet/minecraft/class_1297;named getTopMostPassengerLnet/minecraft/entity/mob/PiglinEntity;getTopMostPassenger(Lnet/minecraft/entity/Entity;I)Lnet/minecraft/entity/Entity;
-
getAmbientSound
- Overrides:
getAmbientSoundin classMobEntity- Mappings:
Namespace Name Mixin selector official pLasc;p()Laer;intermediary method_5994Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;named getAmbientSoundLnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
-
getHurtSound
- Overrides:
getHurtSoundin classHostileEntity- Mappings:
Namespace Name Mixin selector official cLasb;c(Laqy;)Laer;intermediary method_6011Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;named getHurtSoundLnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;
-
getDeathSound
- Overrides:
getDeathSoundin classHostileEntity- Mappings:
Namespace Name Mixin selector official qLasb;q()Laer;intermediary method_6002Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;named getDeathSoundLnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
-
playStepSound
- Overrides:
playStepSoundin classEntity- Mappings:
Namespace Name Mixin selector official bLaro;b(Lfx;Lcio;)Vintermediary method_5712Lnet/minecraft/class_1297;method_5712(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed playStepSoundLnet/minecraft/entity/Entity;playStepSound(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
playSound
- Mappings:
Namespace Name Mixin selector official aLbhb;a(Laer;)Vintermediary method_30086Lnet/minecraft/class_4836;method_30086(Lnet/minecraft/class_3414;)Vnamed playSoundLnet/minecraft/entity/mob/PiglinEntity;playSound(Lnet/minecraft/sound/SoundEvent;)V
-
playZombificationSound
protected void playZombificationSound()- Specified by:
playZombificationSoundin classAbstractPiglinEntity- Mappings:
Namespace Name Mixin selector official fpLbha;fp()Vintermediary method_30238Lnet/minecraft/class_5418;method_30238()Vnamed playZombificationSoundLnet/minecraft/entity/mob/AbstractPiglinEntity;playZombificationSound()V
-