Package net.minecraft.entity.mob
Class AbstractPiglinEntity
java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.LivingEntity
net.minecraft.entity.mob.MobEntity
net.minecraft.entity.mob.PathAwareEntity
net.minecraft.entity.mob.HostileEntity
net.minecraft.entity.mob.AbstractPiglinEntity
- All Implemented Interfaces:
Attackable
,DataTracked
,EquipmentHolder
,Leashable
,Monster
,Targeter
,ScoreHolder
,Nameable
,EntityLike
- Direct Known Subclasses:
PiglinBruteEntity
,PiglinEntity
- Mappings:
Namespace Name named net/minecraft/entity/mob/AbstractPiglinEntity
intermediary net/minecraft/class_5418
official coj
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.LivingEntity
LivingEntity.FallSounds
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason
Nested classes/interfaces inherited from interface net.minecraft.entity.Leashable
Leashable.LeashData
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final TrackedData
<Boolean> static final int
protected int
Fields inherited from class net.minecraft.entity.mob.PathAwareEntity
DEFAULT_PATHFINDING_FAVOR
Fields inherited from class net.minecraft.entity.mob.MobEntity
ambientSoundChance, armorDropChances, BASE_ENCHANTED_ARMOR_CHANCE, BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCE, BASE_SPAWN_EQUIPMENT_CHANCE, bodyArmorDropChance, DEFAULT_CAN_PICKUP_LOOT_CHANCE, DEFAULT_DROP_CHANCE, experiencePoints, field_35039, field_38932, field_52220, goalSelector, handDropChances, jumpControl, lookControl, MINIMUM_DROPPED_XP_PER_EQUIPMENT, moveControl, navigation, RANDOM_SPAWN_BONUS_MODIFIER_ID, targetSelector
Fields inherited from class net.minecraft.entity.LivingEntity
activeItemStack, attackingPlayer, ATTRIBUTES_NBT_KEY, BABY_SCALE_FACTOR, bodyTrackingIncrements, bodyYaw, brain, dead, DEATH_TICKS, deathTime, defaultMaxHealth, despawnCounter, elytraFlightController, EQUIPMENT_SLOT_ID, field_30069, field_30070, field_30072, field_30074, field_30075, field_44874, field_47756, field_48827, field_6215, forwardSpeed, glidingTicks, GLOWING_FLAG, GRAVITY, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, hurtTime, itemUseTimeLeft, jumping, lastAttackedTicks, lastDamageTaken, lastHandSwingProgress, limbAnimator, LIVING_FLAGS, lookDirection, maxHurtTime, NOT_WEARING_GAZE_DISGUISE_PREDICATE, OFF_HAND_ACTIVE_FLAG, playerHitTimer, preferredHand, prevBodyYaw, prevHeadYaw, prevLookDirection, prevScale, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, riptideAttackDamage, riptideStack, riptideTicks, scoreAmount, serverHeadYaw, serverPitch, serverX, serverY, serverYaw, serverZ, sidewaysSpeed, SLEEPING_DIMENSIONS, stepBobbingAmount, stuckArrowTimer, stuckStingerTimer, upwardSpeed, USING_ITEM_FLAG, USING_RIPTIDE_FLAG
Fields inherited from class net.minecraft.entity.Entity
age, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLIDING_FLAG_INDEX, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, ID_KEY, inPowderSnow, intersectionChecked, lastRenderX, lastRenderY, lastRenderZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, portalManager, POSE, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow
Fields inherited from interface net.minecraft.entity.Leashable
LEASH_NBT_KEY, MAX_LEASH_LENGTH, SHORT_LEASH_LENGTH
Fields inherited from interface net.minecraft.entity.mob.Monster
NORMAL_MONSTER_XP, SMALL_MONSTER_XP, STRONG_MONSTER_XP, STRONGER_MONSTER_XP, WITHER_XP, ZERO_XP
Fields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME
-
Constructor Summary
ConstructorDescriptionAbstractPiglinEntity
(EntityType<? extends AbstractPiglinEntity> type, World world) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract boolean
canHunt()
abstract PiglinActivity
protected void
initDataTracker
(DataTracker.Builder builder) Initializes data tracker.boolean
isAdult()
protected boolean
protected boolean
protected void
mobTick
(ServerWorld world) void
protected abstract void
void
Reads custom data fromnbt
.protected void
private void
void
setImmuneToZombification
(boolean immuneToZombification) void
setTimeInOverworld
(int timeInOverworld) boolean
void
Writes custom data tonbt
.protected void
zombify
(ServerWorld world) Methods inherited from class net.minecraft.entity.mob.HostileEntity
canSpawnIgnoreLightLevel, canSpawnInDark, createHostileAttributes, getDeathSound, getFallSounds, getHurtSound, getPathfindingFavor, getProjectileType, getSoundCategory, getSplashSound, getSwimSound, isAngryAt, isDisallowedInPeaceful, isSpawnDark, shouldDropLoot, shouldDropXp, tickMovement, updateDespawnCounter
Methods inherited from class net.minecraft.entity.mob.PathAwareEntity
beforeLeashTick, canSpawn, getFollowLeashSpeed, getPathfindingFavor, isNavigating, isPanicking, onShortLeashTick, shouldFollowLeash
Methods inherited from class net.minecraft.entity.mob.MobEntity
baseTick, canBeLeashed, canDispenserEquipSlot, canGather, canImmediatelyDespawn, canMobSpawn, canMoveVoluntarily, cannotDespawn, canPickupItem, canPickUpLoot, canSpawn, canTarget, canUseRangedWeapon, canUseSlot, checkDespawn, clampHeadYaw, clearGoals, clearGoalsAndTasks, clearPositionTarget, convertTo, convertTo, createBodyControl, createMobAttributes, createNavigation, detachLeash, detachLeash, dropAllEquipment, dropEquipment, dropEquipment, dropLoot, enchantEquipment, enchantMainHandItem, equipBodyArmor, equipLootStack, equipStack, getAllArmorItems, getAmbientSound, getArmorDropChances, getArmorItems, getAttackBox, getBodyArmor, getControllingPassenger, getDropChance, getEquipmentForSlot, getEquippedStack, getHandDropChances, getHandItems, getItemPickUpRangeExpander, getJumpControl, getLeashData, getLimitPerChunk, getLookControl, getLootTableKey, getLootTableSeed, getMainArm, getMaxHeadRotation, getMaxLookPitchChange, getMaxLookYawChange, getMinAmbientSoundDelay, getMoveControl, getNavigation, getPathfindingPenalty, getPickBlockStack, getPositionTarget, getPositionTargetRange, getSafeFallDistance, getTargetInBrain, getVisibilityCache, getXpToDrop, handleStatus, hasPositionTarget, initEquipment, initGoals, initialize, interact, interactMob, isAffectedByDaylight, isAiDisabled, isAttacking, isInAttackRange, isInWalkTargetRange, isInWalkTargetRange, isLeftHanded, isPersistent, isWearingBodyArmor, lookAtEntity, loot, movesIndependently, onEatingGrass, onFinishPathfinding, onPlayerSpawnedChild, onStartPathfinding, playAttackSound, playHurtSound, playSpawnEffects, prefersNewDamageableItem, prefersNewEquipment, removeFromDimension, setAiDisabled, setAttacking, setBaby, setCanPickUpLoot, setEquipmentDropChance, setEquipmentFromTable, setEquipmentFromTable, setForwardSpeed, setLeashData, setLeftHanded, setMovementSpeed, setPathfindingPenalty, setPersistent, setPositionTarget, setSidewaysSpeed, setTarget, setUpwardSpeed, spawnsTooManyForEachTry, startRiding, stopMovement, swimUpward, tick, tickNewAi, tryAttack, tryEquip, turnHead, updateAttribute, updateDropChances, updateEnchantments, updateGoalControls
Methods inherited from class net.minecraft.entity.LivingEntity
addDeathParticles, addPowderSnowSlowIfNeeded, addStatusEffect, addStatusEffect, animateDamage, applyArmorToDamage, applyDamage, applyFluidMovingSpeed, applyMovementEffects, areItemsDifferent, attackLivingEntity, blockedByShield, canBreatheInWater, canEquip, canEquipFromDispenser, canFreeze, canGlide, canGlideWith, canHaveStatusEffect, canHit, canSee, canSee, canTakeDamage, canTarget, canUsePortals, canWalkOnFluid, clampScale, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createBrainProfile, createLivingAttributes, damage, damageArmor, damageEquipment, damageHelmet, damageShield, deserializeBrain, disableExperienceDropping, disablesShield, drop, dropInventory, dropXp, endCombat, enterCombat, fall, forEachGeneratedItem, forEachGiftedItem, forEachShearedItem, getAbsorptionAmount, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getBaseDimensions, getBaseMovementSpeedMultiplier, getBlockingItem, getBodyYaw, getBoundingBox, getBrain, getClimbingPos, getControlledMovementInput, getDamageTiltYaw, getDamageTracker, getDespawnCounter, getDimensions, getEffectiveGravity, getEquippedItems, getGlidingTicks, getGravity, getHandSwingProgress, getHeadYaw, getHealth, getHitbox, getItemUseTime, getItemUseTimeLeft, getJumpBoostVelocityModifier, getJumpVelocity, getJumpVelocity, getKnockbackAgainst, getLastAttackedTime, getLastAttacker, getLastAttackTime, getLeaningPitch, getLerpTargetPitch, getLerpTargetX, getLerpTargetY, getLerpTargetYaw, getLerpTargetZ, getLocationBasedEnchantmentEffects, getMainHandStack, getMaxAbsorption, getMaxHealth, getMaxRelativeHeadRotation, getMovementSpeed, getNextAirOnLand, getNextAirUnderwater, getOffGroundSpeed, getOffHandStack, getPassengerRidingPos, getPlayerHitTimer, getPoses, getPreferredEquipmentSlot, getPrimeAdversary, getRecentDamageSource, getSaddledSpeed, getSafeFallDistance, getScale, getScaleFactor, getSleepingDirection, getSleepingPosition, getSlotForHand, getSoundPitch, getSoundVolume, getStackInArm, getStackInHand, getStackReference, getStatusEffect, getStatusEffects, getStepHeight, getStingerCount, getStuckArrowCount, getVelocityMultiplier, getWeaponStack, getXpToDrop, getYaw, giveOrDropStack, handleFallDamage, hasInvertedHealingAndHarm, hasLandedInFluid, hasNoDrag, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isArmorSlot, isBaby, isBlocking, isClimbing, isDead, isEntityLookingAtMe, isExperienceDroppingDisabled, isGliding, isGlowing, isHolding, isHolding, isHoldingOntoLadder, isImmobile, isInCreativeMode, isInsideWall, isInSwimmingPose, isInvulnerableTo, isMobOrPlayer, isPartOfGame, isPushable, isSleeping, isUsingItem, isUsingRiptide, jump, kill, knockback, knockDownwards, lerpHeadYaw, lerpYaw, lookAt, markEffectsDirty, modifyAppliedDamage, onAttacking, onDamaged, onDeath, onEquipStack, onKilledBy, onRemoval, onSpawnPacket, onStatusEffectApplied, onStatusEffectsRemoved, onStatusEffectUpgraded, onTrackedDataSet, playBlockFallSound, playSound, positionInPortal, positionInPortal, processEquippedStack, pushAway, pushAwayFrom, remove, removePowderSnowSlow, removeStatusEffect, removeStatusEffectInternal, resetLerp, sendEffectToControllingPlayer, sendEquipmentBreakStatus, sendPickup, setAbsorptionAmount, setAbsorptionAmountUnclamped, setAttacker, setAttacking, setBodyYaw, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setNearbySongPlaying, setNoDrag, setOnFireForTicks, setSleepingPosition, setSprinting, setStackInHand, setStatusEffect, setStingerCount, setStuckArrowCount, shouldAlwaysDropXp, shouldRenderName, shouldSwimInFluids, sleep, spawnItemParticles, stopRiding, stopUsingItem, swingHand, swingHand, takeKnockback, takeShieldHit, teleport, tickControlled, tickCramming, tickGliding, tickHandSwing, tickInVoid, tickItemStackUsage, tickRiding, tickRiptide, tickStatusEffects, tiltScreen, travel, triggerItemPickedUpByEntityCriteria, updateLimbs, updateLimbs, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, updateTrackedPositionAndAngles, wakeUp, wouldNotSuffocateInPose
Methods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyGravity, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canModifyAt, canSprintAsVehicle, canStartRiding, canTeleportBetween, changeLookDirection, clientDamage, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, extinguish, extinguishWithSound, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getDefaultPortalCooldown, getDisplayName, getEffectiveExplosionResistance, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeight, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLastRenderPos, getLeashOffset, getLeashOffset, getLeashPos, getLerpedPitch, getLerpedPos, getLerpedYaw, getMaxAir, getMinFreezeDamageTicks, getMoveEffect, getMovement, getMovementDirection, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPos, getPose, getPosWithYOffset, getProjectileDeflection, getRandom, getRandomBodyY, getRegistryManager, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSavedEntityId, getScoreboardTeam, getServer, getStandingEyeHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSyncedPos, getTargetingMargin, getTeamColorValue, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getWidth, getWorld, getWorldSpawnPos, getX, getY, getYaw, getZ, handleAttack, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPlayerRider, hasPortalCooldown, hasVehicle, interactAt, isAlwaysInvulnerableTo, isAttackable, isCollidable, isConnectedThroughVehicle, isControlledByPlayer, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFrozen, isGlowingLocal, isImmuneToExplosion, isInFluid, isInLava, isInPose, isInRange, isInRange, isInSameTeam, isInsideWaterOrBubbleColumn, isInSneakingPose, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLocalPlayerOrLogicalSideForUpdatingMovement, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartOf, isPlayer, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, lerpPosAndRotation, limitFallDistance, move, movementInputToVelocity, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDataTrackerUpdate, onExplodedBy, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemove, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, populateCrashReport, pushOutOfBlocks, queueBlockCollisionCheck, raycast, readNbt, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, removeAllPassengers, removeCommandTag, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, rotate, saveNbt, saveSelfNbt, scheduleVelocityUpdate, serverDamage, setAir, setAngles, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setId, setInPowderSnow, setInvisible, setInvulnerable, setMovement, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setPosition, setPrevPositionAndAngles, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldPlayBurnSoundInLava, shouldRender, shouldRender, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTickBlockCollision, sidedDamage, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportTo, tickBlockCollision, tickBlockCollision, tickPortalCooldown, tickPortalTeleportation, toNbtList, toNbtList, toString, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updatePrevAngles, updatePrevPosition, updateSupportingBlockPos, updateSwimming, updateTrackedPosition, updateVelocity, updateWaterState, writeNbt
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.entity.EquipmentHolder
getSlotForStack, setEquipmentFromTable, setEquipmentFromTable, setEquipmentFromTable
Methods inherited from interface net.minecraft.entity.Leashable
applyLeashElasticity, attachLeash, canLeashAttachTo, getLeashHolder, isLeashed, mightBeLeashed, readLeashDataFromNbt, setUnresolvedLeashHolderId, writeLeashDataToNbt
Methods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
IMMUNE_TO_ZOMBIFICATION
- Mappings:
Namespace Name Mixin selector named IMMUNE_TO_ZOMBIFICATION
Lnet/minecraft/entity/mob/AbstractPiglinEntity;IMMUNE_TO_ZOMBIFICATION:Lnet/minecraft/entity/data/TrackedData;
intermediary field_25758
Lnet/minecraft/class_5418;field_25758:Lnet/minecraft/class_2940;
official a
Lcoj;a:Lalc;
-
TIME_TO_ZOMBIFY
public static final int TIME_TO_ZOMBIFY- See Also:
- Mappings:
Namespace Name Mixin selector named TIME_TO_ZOMBIFY
Lnet/minecraft/entity/mob/AbstractPiglinEntity;TIME_TO_ZOMBIFY:I
intermediary field_30547
Lnet/minecraft/class_5418;field_30547:I
official b
Lcoj;b:I
-
timeInOverworld
protected int timeInOverworld- Mappings:
Namespace Name Mixin selector named timeInOverworld
Lnet/minecraft/entity/mob/AbstractPiglinEntity;timeInOverworld:I
intermediary field_25759
Lnet/minecraft/class_5418;field_25759:I
official c
Lcoj;c:I
-
-
Constructor Details
-
AbstractPiglinEntity
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
intermediary <init>
Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
official <init>
Lbvj;<init>(Lbvq;Ldhh;)V
-
-
Method Details
-
setCanPathThroughDoors
private void setCanPathThroughDoors()- Mappings:
Namespace Name Mixin selector named setCanPathThroughDoors
Lnet/minecraft/entity/mob/AbstractPiglinEntity;setCanPathThroughDoors()V
intermediary method_30239
Lnet/minecraft/class_5418;method_30239()V
official t
Lcoj;t()V
-
canHunt
protected abstract boolean canHunt()- Mappings:
Namespace Name Mixin selector named canHunt
Lnet/minecraft/entity/mob/AbstractPiglinEntity;canHunt()Z
intermediary method_26952
Lnet/minecraft/class_5418;method_26952()Z
official m
Lcoj;m()Z
-
setImmuneToZombification
public void setImmuneToZombification(boolean immuneToZombification) - Mappings:
Namespace Name Mixin selector named setImmuneToZombification
Lnet/minecraft/entity/mob/AbstractPiglinEntity;setImmuneToZombification(Z)V
intermediary method_30240
Lnet/minecraft/class_5418;method_30240(Z)V
official x
Lcoj;x(Z)V
-
isImmuneToZombification
protected boolean isImmuneToZombification()- Mappings:
Namespace Name Mixin selector named isImmuneToZombification
Lnet/minecraft/entity/mob/AbstractPiglinEntity;isImmuneToZombification()Z
intermediary method_30234
Lnet/minecraft/class_5418;method_30234()Z
official p
Lcoj;p()Z
-
initDataTracker
Initializes data tracker.- Overrides:
initDataTracker
in classMobEntity
- API Note:
- Subclasses should override this and add to the builder any data that needs to be tracked.
- Mappings:
Namespace Name Mixin selector named initDataTracker
Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
intermediary method_5693
Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
official a
Lbvj;a(Lalg$a;)V
-
writeCustomDataToNbt
Writes custom data tonbt
. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
- Overrides:
writeCustomDataToNbt
in classMobEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named writeCustomDataToNbt
Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_5652
Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
official b
Lbvj;b(Lux;)V
-
readCustomDataFromNbt
Reads custom data fromnbt
. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
nbt
might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Overrides:
readCustomDataFromNbt
in classMobEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named readCustomDataFromNbt
Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_5749
Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
official a
Lbvj;a(Lux;)V
-
mobTick
-
setTimeInOverworld
public void setTimeInOverworld(int timeInOverworld) - Mappings:
Namespace Name Mixin selector named setTimeInOverworld
Lnet/minecraft/entity/mob/AbstractPiglinEntity;setTimeInOverworld(I)V
intermediary method_63664
Lnet/minecraft/class_5418;method_63664(I)V
official b
Lcoj;b(I)V
-
shouldZombify
public boolean shouldZombify()- Mappings:
Namespace Name Mixin selector named shouldZombify
Lnet/minecraft/entity/mob/AbstractPiglinEntity;shouldZombify()Z
intermediary method_30235
Lnet/minecraft/class_5418;method_30235()Z
official x
Lcoj;x()Z
-
zombify
- Mappings:
Namespace Name Mixin selector named zombify
Lnet/minecraft/entity/mob/AbstractPiglinEntity;zombify(Lnet/minecraft/server/world/ServerWorld;)V
intermediary method_24694
Lnet/minecraft/class_5418;method_24694(Lnet/minecraft/class_3218;)V
official g
Lcoj;g(Lash;)V
-
isAdult
public boolean isAdult()- Mappings:
Namespace Name Mixin selector named isAdult
Lnet/minecraft/entity/mob/AbstractPiglinEntity;isAdult()Z
intermediary method_30236
Lnet/minecraft/class_5418;method_30236()Z
official go
Lcoj;go()Z
-
getActivity
- Mappings:
Namespace Name Mixin selector named getActivity
Lnet/minecraft/entity/mob/AbstractPiglinEntity;getActivity()Lnet/minecraft/entity/mob/PiglinActivity;
intermediary method_24705
Lnet/minecraft/class_5418;method_24705()Lnet/minecraft/class_4837;
official gp
Lcoj;gp()Lcom;
-
getTarget
- Specified by:
getTarget
in interfaceTargeter
- Overrides:
getTarget
in classMobEntity
- Mappings:
Namespace Name Mixin selector named getTarget
Lnet/minecraft/entity/Targeter;getTarget()Lnet/minecraft/entity/LivingEntity;
intermediary method_5968
Lnet/minecraft/class_8152;method_5968()Lnet/minecraft/class_1309;
official O_
Lbxd;O_()Lbwf;
-
isHoldingTool
protected boolean isHoldingTool()- Mappings:
Namespace Name Mixin selector named isHoldingTool
Lnet/minecraft/entity/mob/AbstractPiglinEntity;isHoldingTool()Z
intermediary method_30237
Lnet/minecraft/class_5418;method_30237()Z
official gq
Lcoj;gq()Z
-
playAmbientSound
public void playAmbientSound()- Overrides:
playAmbientSound
in classMobEntity
- Mappings:
Namespace Name Mixin selector named playAmbientSound
Lnet/minecraft/entity/mob/MobEntity;playAmbientSound()V
intermediary method_5966
Lnet/minecraft/class_1308;method_5966()V
official R
Lbwh;R()V
-
sendAiDebugData
protected void sendAiDebugData()- Overrides:
sendAiDebugData
in classMobEntity
- Mappings:
Namespace Name Mixin selector named sendAiDebugData
Lnet/minecraft/entity/mob/MobEntity;sendAiDebugData()V
intermediary method_18409
Lnet/minecraft/class_1308;method_18409()V
official Y
Lbwh;Y()V
-
playZombificationSound
protected abstract void playZombificationSound()- Mappings:
Namespace Name Mixin selector named playZombificationSound
Lnet/minecraft/entity/mob/AbstractPiglinEntity;playZombificationSound()V
intermediary method_30238
Lnet/minecraft/class_5418;method_30238()V
official gr
Lcoj;gr()V
-