Class Piglin
- All Implemented Interfaces:
- CommandSource,- Attackable,- CrossbowAttackMob,- Enemy,- RangedAttackMob,- InventoryCarrier,- Targeting,- EntityAccess,- Nameable,- ICapabilityProvider,- ICapabilityProviderImpl<Entity>,- ICapabilitySerializable<CompoundTag>,- IForgeEntity,- IForgeLivingEntity,- INBTSerializable<CompoundTag>
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.world.entity.LivingEntityLivingEntity.FallsoundsNested classes/interfaces inherited from class net.minecraft.world.entity.EntityEntity.MoveFunction, Entity.MovementEmission, Entity.RemovalReasonNested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProviderCapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final intprivate static final floatprivate booleanprivate static final floatprivate static final floatprivate static final EntityDataAccessor<Boolean>private static final EntityDataAccessor<Boolean>private static final EntityDataAccessor<Boolean>private final SimpleContainerprivate static final intprivate static final intprotected static final com.google.common.collect.ImmutableList<MemoryModuleType<?>>private static final floatprivate static final floatprivate static final doubleprotected static final com.google.common.collect.ImmutableList<SensorType<? extends Sensor<? super Piglin>>>private static final AttributeModifierprivate static final UUIDFields inherited from class net.minecraft.world.entity.monster.piglin.AbstractPiglinCONVERSION_TIME, DATA_IMMUNE_TO_ZOMBIFICATION, PIGLIN_EYE_HEIGHT, timeInOverworldFields inherited from class net.minecraft.world.entity.PathfinderMobDEFAULT_WALK_TARGET_VALUEFields inherited from class net.minecraft.world.entity.MobambientSoundTime, armorDropChances, DEFAULT_EQUIPMENT_DROP_CHANCE, goalSelector, handDropChances, jumpControl, LEASH_TAG, lookControl, MAX_ENCHANTED_ARMOR_CHANCE, MAX_ENCHANTED_WEAPON_CHANCE, MAX_PICKUP_LOOT_CHANCE, MAX_WEARING_ARMOR_CHANCE, moveControl, navigation, PICKUP_REACH, PRESERVE_ITEM_DROP_CHANCE, targetSelector, UPDATE_GOAL_SELECTOR_EVERY_N_TICKS, xpRewardFields inherited from class net.minecraft.world.entity.LivingEntityanimStep, animStepO, ARMOR_SLOT_OFFSET, ARMOR_SLOTS, attackAnim, attackStrengthTicker, autoSpinAttackTicks, brain, DATA_LIVING_ENTITY_FLAGS, dead, DEATH_DURATION, deathScore, deathTime, DEFAULT_BASE_GRAVITY, DEFAULT_EYE_HEIGHT, EQUIPMENT_SLOT_OFFSET, EXTRA_RENDER_CULLING_SIZE_WITH_BIG_HAT, fallFlyTicks, HAND_SLOTS, hurtDuration, hurtTime, invulnerableDuration, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerTime, lerpHeadSteps, lerpSteps, lerpX, lerpXRot, lerpY, lerpYHeadRot, lerpYRot, lerpZ, LIVING_ENTITY_FLAG_IS_USING, LIVING_ENTITY_FLAG_OFF_HAND, LIVING_ENTITY_FLAG_SPIN_ATTACK, MIN_MOVEMENT_DISTANCE, noActionTime, oAttackAnim, oRun, PLAYER_HURT_EXPERIENCE_TIME, removeArrowTime, removeStingerTime, rotA, rotOffs, run, SLEEPING_DIMENSIONS, SWING_DURATION, swinging, swingingArm, swingTime, timeOffs, USE_ITEM_INTERVAL, useItem, useItemRemaining, walkAnimation, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zzaFields inherited from class net.minecraft.world.entity.EntityBASE_TICKS_REQUIRED_TO_FREEZE, blocksBuilding, BOARDING_COOLDOWN, boardingCooldown, BREATHING_DISTANCE_BELOW_EYES, DATA_POSE, DATA_SHARED_FLAGS_ID, DEFAULT_BB_HEIGHT, DEFAULT_BB_WIDTH, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_2, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_5, DELTA_AFFECTED_BY_BLOCKS_BELOW_1_0, ENTITY_COUNTER, entityData, fallDistance, firstTick, FLAG_FALL_FLYING, FLAG_GLOWING, FLAG_ONFIRE, fluidHeight, flyDist, forgeFluidTypeHeight, FREEZE_HURT_FREQUENCY, hasImpulse, horizontalCollision, hurtMarked, ID_TAG, invulnerableTime, isInPowderSnow, isInsidePortal, mainSupportingBlockPos, MAX_ENTITY_TAG_COUNT, minorHorizontalCollision, moveDist, noCulling, noPhysics, PASSENGERS_TAG, portalEntrancePos, portalTime, random, stringUUID, stuckSpeedMultiplier, tickCount, TOTAL_AIR_SUPPLY, uuid, UUID_TAG, verticalCollision, verticalCollisionBelow, walkDist, walkDistO, wasEyeInWater, wasInPowderSnow, wasOnFire, wasTouchingWater, xo, xOld, xRotO, yo, yOld, yRotO, zo, zOldFields inherited from interface net.minecraft.commands.CommandSourceNULLFields inherited from interface net.minecraft.world.entity.monster.EnemyXP_REWARD_BOSS, XP_REWARD_HUGE, XP_REWARD_LARGE, XP_REWARD_MEDIUM, XP_REWARD_NONE, XP_REWARD_SMALLFields inherited from interface net.minecraft.world.entity.npc.InventoryCarrierTAG_INVENTORY
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddAdditionalSaveData(CompoundTag p_34751_) protected ItemStackaddToInventory(ItemStack p_34779_) protected Brain.Provider<Piglin>protected booleancanAddToInventory(ItemStack p_34781_) booleancanFireProjectileWeapon(ProjectileWeaponItem p_34715_) protected booleancanHunt()protected booleancanReplaceCurrentItem(ItemStack p_34788_) protected booleancanReplaceCurrentItem(ItemStack p_34712_, ItemStack p_34713_) static booleancheckPiglinSpawnRules(EntityType<Piglin> p_219198_, LevelAccessor p_219199_, MobSpawnType p_219200_, BlockPos p_219201_, RandomSource p_219202_) static AttributeSupplier.Builderprivate ItemStackprotected voidprotected voidprotected voiddropCustomDeathLoot(DamageSource p_34697_, int p_34698_, boolean p_34699_) finalizeSpawn(ServerLevelAccessor p_34717_, DifficultyInstance p_34718_, MobSpawnType p_34719_, SpawnGroupData p_34720_, CompoundTag p_34721_) Forge: Override-Only, call via ForgeEventFactory.onFinalizeSpawn.
 Overrides are allowed.protected voidfinishConversion(ServerLevel p_34756_) protected SoundEventgetBrain()protected SoundEventintprotected SoundEventgetHurtSound(DamageSource p_34767_) protected floatgetStandingEyeHeight(Pose p_34740_, EntityDimensions p_34741_) private EntitygetTopPassenger(Entity p_34731_, int p_34732_) protected voidholdInMainHand(ItemStack p_34784_) protected voidholdInOffHand(ItemStack p_34786_) booleanhurt(DamageSource p_34694_, float p_34695_) booleanisBaby()private booleanbooleanprotected Brain<?>makeBrain(com.mojang.serialization.Dynamic<?> p_34723_) private voidmaybeWearArmor(EquipmentSlot p_219192_, ItemStack p_219193_, RandomSource p_219194_) mobInteract(Player p_34745_, InteractionHand p_34746_) voidvoidonSyncedDataUpdated(EntityDataAccessor<?> p_34727_) voidperformRangedAttack(LivingEntity p_34704_, float p_34705_) protected voidpickUpItem(ItemEntity p_34743_) protected voidprotected voidplaySoundEvent(SoundEvent p_219196_) protected voidplayStepSound(BlockPos p_34748_, BlockState p_34749_) protected voidpopulateDefaultEquipmentSlots(RandomSource p_219189_, DifficultyInstance p_219190_) voidreadAdditionalSaveData(CompoundTag p_34725_) booleanremoveWhenFarAway(double p_34775_) voidsetBaby(boolean p_34729_) private voidsetCannotHunt(boolean p_34792_) voidsetChargingCrossbow(boolean p_34753_) voidsetDancing(boolean p_34790_) voidshootCrossbowProjectile(LivingEntity p_34707_, ItemStack p_34708_, Projectile p_34709_, float p_34710_) protected booleanbooleanstartRiding(Entity p_34701_, boolean p_34702_) booleanwantsToPickUp(ItemStack p_34777_) Methods inherited from class net.minecraft.world.entity.monster.piglin.AbstractPiglingetPassengerAttachmentPoint, getTarget, isAdult, isConverting, isHoldingMeleeWeapon, isImmuneToZombification, playAmbientSound, ridingOffset, sendDebugPackets, setImmuneToZombificationMethods inherited from class net.minecraft.world.entity.monster.MonsteraiStep, checkAnyLightMonsterSpawnRules, checkMonsterSpawnRules, createMonsterAttributes, getFallSounds, getProjectile, getSoundSource, getSwimSound, getSwimSplashSound, getWalkTargetValue, isDarkEnoughToSpawn, isPreventingPlayerRest, shouldDropExperience, shouldDropLoot, updateNoActionTimeMethods inherited from class net.minecraft.world.entity.PathfinderMobcheckSpawnRules, followLeashSpeed, getWalkTargetValue, isPanicking, isPathFinding, onLeashDistance, shouldStayCloseToLeashHolder, tickLeashMethods inherited from class net.minecraft.world.entity.Mobate, baseTick, canAttackType, canBeLeashed, canHoldItem, canPickUpLoot, canReplaceEqualItem, canTakeItem, checkDespawn, checkMobSpawnRules, checkSpawnObstruction, clearRestriction, convertTo, createBodyControl, createMobAttributes, createNavigation, doHurtTarget, dropFromLootTable, dropLeash, enchantSpawnedArmor, enchantSpawnedWeapon, equipItemIfPossible, getAmbientSoundInterval, getArmorSlots, getAttackBoundingBox, getControllingPassenger, getDefaultLootTable, getEquipmentDropChance, getEquipmentForSlot, getHandSlots, getHeadRotSpeed, getItemBySlot, getJumpControl, getLeashHolder, getLookControl, getLootTable, getLootTableSeed, getMainArm, getMaxFallDistance, getMaxHeadXRot, getMaxHeadYRot, getMaxSpawnClusterSize, getMoveControl, getNavigation, getPathfindingMalus, getPickResult, getPickupReach, getRestrictCenter, getRestrictRadius, getSensing, getSpawnType, handleEntityEvent, hasRestriction, interact, isAggressive, isEffectiveAi, isLeashed, isLeftHanded, isMaxGroupSizeReached, isNoAi, isPersistenceRequired, isSpawnCancelled, isSunBurnTick, isWithinMeleeAttackRange, isWithinRestriction, isWithinRestriction, jumpInFluid, jumpInLiquid, lookAt, onOffspringSpawnedFromEgg, onPathfindingDone, onPathfindingStart, playHurtSound, populateDefaultEquipmentEnchantments, registerGoals, removeAfterChangingDimensions, removeAllGoals, removeFreeWill, requiresCustomPersistence, restrictTo, serverAiStep, setAggressive, setCanPickUpLoot, setDelayedLeashHolderId, setDropChance, setGuaranteedDrop, setItemSlot, setItemSlotAndDropWhenKilled, setLeashedTo, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, setSpawnCancelled, setSpeed, setTarget, setXxa, setYya, setZza, shouldPassengersInheritMalus, spawnAnim, tick, tickHeadTurn, updateControlFlagsMethods inherited from class net.minecraft.world.entity.LivingEntityactuallyHurt, addEffect, addEffect, animateHurt, areAllEffectsAmbient, attackable, blockedByShield, blockUsingShield, broadcastBreakEvent, broadcastBreakEvent, calculateEntityAnimation, calculateFallDamage, canAttack, canAttack, canBeAffected, canBeSeenAsEnemy, canBeSeenByAnyone, canBreatheUnderwater, canChangeDimensions, canDisableShield, canFreeze, canSpawnSoulSpeedParticle, canStandOnFluid, causeFallDamage, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, curePotionEffects, decreaseAirSupply, die, doAutoAttackOnTouch, doesEmitEquipEvent, doPush, dropAllDeathLoot, dropEquipment, dropExperience, eat, equipmentHasChanged, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributeBaseValue, getAttributes, getAttributeValue, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, getCapability, getCombatTracker, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDimensions, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getEquipmentSlotForItem, getEyeHeight, getFallFlyingTicks, getFluidFallingAdjustedMovement, getFlyingSpeed, getHealth, getHitbox, getHurtDir, getItemInHand, getJumpBoostPower, getJumpPower, getKillCredit, getLastAttacker, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getMainHandItem, getMaxAbsorption, getMaxHealth, getMobType, getMyRidingOffset, getNoActionTime, getOffhandItem, getPassengerRidingPosition, getRandom, getRelativePortalPosition, getRiddenInput, getRiddenSpeed, getScale, getSleepingPos, getSlot, getSoundVolume, getSpeed, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVisualRotationYInDegrees, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleDamageEvent, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, hasLineOfSight, heal, hurtArmor, hurtCurrentlyUsedShield, hurtHelmet, increaseAirSupply, indicateDamage, internalSetAbsorptionAmount, invalidateCaps, isAffectedByFluids, isAffectedByPotions, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBlocking, isCurrentlyGlowing, isDamageSourceBlocked, isDeadOrDying, isFallFlying, isHolding, isHolding, isImmobile, isInvertedHealAndHarm, isInWall, isPickable, isPushable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, kill, knockback, lerpHeadRotationStep, lerpHeadTo, lerpTargetX, lerpTargetXRot, lerpTargetY, lerpTargetYRot, lerpTargetZ, lerpTo, lookAt, maxUpStep, onBelowWorld, onChangedBlock, onClimbable, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onEquipItem, onItemPickup, onLeaveCombat, onSoulSpeedBlock, playBlockFallSound, push, pushEntities, randomTeleport, recreateFromPacket, releaseUsingItem, remove, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeFrost, removeSoulSpeed, resetForwardDirectionOfRelativePortalPosition, reviveCaps, rideTick, sendEffectToPassengers, setAbsorptionAmount, setArrowCount, setDiscardFriction, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setRecordPlayingNearby, setSleepingPos, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDiscardFriction, shouldRemoveSoulSpeed, shouldRiderFaceForward, shouldShowName, skipDropExperience, spawnSoulSpeedParticle, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, tickRidden, travel, triggerItemUseEffects, tryAddFrost, tryAddSoulSpeed, updateEffectVisibility, updateInvisibilityStatus, updateSwingTime, updateUsingItem, updateWalkAnimation, verifyEquippedItem, wasExperienceConsumed, wouldNotSuffocateAtTargetPoseMethods inherited from class net.minecraft.world.entity.EntityabsMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addDeltaMovement, addPassenger, addTag, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canBeHitByProjectile, canCollideWith, canControlVehicle, canRide, canSpawnSprintParticle, canSprint, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkBelowWorld, checkInsideBlocks, checkSlowFallDistance, checkSupportingBlock, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, copyPosition, couldAcceptPassenger, createCommandSourceStack, createHoverEvent, damageSources, dampensVibrations, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, fixupDimensions, gameEvent, gameEvent, getAddEntityPacket, getAirSupply, getAllSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControlledVehicle, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDimensionsForge, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyeInFluidType, getEyePosition, getEyePosition, getEyeY, getFeetBlockState, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getFluidTypeHeight, getForward, getHandHoldingItemAngle, getId, getIndirectPassengers, getLeashOffset, getLeashOffset, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxHeightFluidType, getMotionDirection, getMovementEmission, getName, getNameTagOffsetY, getOnPos, getOnPos, getOnPosLegacy, getPassengers, getPassengersAndSelf, getPercentFrozen, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalCooldown, getPortalWaitTime, getPose, getPosition, getPositionCodec, getPrimaryStepSoundBlockPos, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRemovalReason, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getStringUUID, getSwimHighSpeedSplashSound, getTags, getTeam, getTeamColor, getTicksFrozen, getTicksRequiredToFreeze, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getX, getX, getXRot, getY, getY, getYRot, getZ, getZ, handleInsidePortal, handleNetherPortal, hasControllingPassenger, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPermissions, hasPose, ignoreExplosion, interactAt, is, isAddedToWorld, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isColliding, isControlledByLocalInstance, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFlapping, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, isInFluidType, isInFluidType, isInLava, isInLiquid, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnPortalCooldown, isOnRails, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isRemoved, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSupportedBy, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, killedEntity, lavaHurt, lerpMotion, lerpPositionAndRotationStep, level, limitPistonMovement, load, makeBoundingBox, makeStuckInBlock, markHurt, maybeBackOffFromEdge, mayInteract, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onClientRemoval, onFlap, onGround, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, onSyncedDataUpdated, pick, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playerTouch, playMuffledStepSound, playSound, playSound, playSwimSound, position, positionRider, positionRider, processFlappingMovement, processPortalCooldown, push, reapplyPosition, refreshDimensions, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendSystemMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setFluidTypeHeight, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevel, setLevelCallback, setMaxUpStep, setNoGravity, setOldPosAndRot, setOnGround, setOnGroundWithKnownMovement, setPortalCooldown, setPortalCooldown, setPos, setPos, setPose, setPosRaw, setRemainingFireTicks, setRemoved, setRot, setSecondsOnFire, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSwimming, setTicksFrozen, setUUID, setViewScale, setXRot, setYRot, shouldBeSaved, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startSeenByPlayer, stopSeenByPlayer, syncPacketPositionCodec, teleportRelative, teleportTo, teleportTo, teleportToWithTicket, thunderHit, toString, touchingUnloadedChunk, trackingPosition, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming, waterSwimSoundMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProviderareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCapsMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.commands.CommandSourcealwaysAcceptsMethods inherited from interface net.minecraft.world.entity.monster.CrossbowAttackMobgetProjectileShotVector, getTarget, performCrossbowAttack, shootCrossbowProjectileMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvidergetCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeEntitycanBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canStartSwimming, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, deserializeNBT, getClassification, getEyeHeightForge, getEyeInFluidType, getFluidFallDistanceModifier, getFluidMotionScale, getFluidTypeHeight, getMaxHeightFluidType, getParts, getPersistentData, getPickedResult, getSoundFromFluidType, getStepHeight, hasCustomOutlineRendering, isAddedToWorld, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, onAddedToWorld, onRemovedFromWorld, revive, serializeNBT, shouldRiderSit, shouldUpdateFluidWhileBoatingMethods inherited from interface net.minecraftforge.common.extensions.IForgeLivingEntitycanDrownInFluidType, canSwimInFluidType, moveInFluid, self, sinkInFluidMethods inherited from interface net.minecraft.world.entity.npc.InventoryCarrierreadInventoryFromTag, writeInventoryToTag
- 
Field Details- 
DATA_BABY_ID
- 
DATA_IS_CHARGING_CROSSBOW
- 
DATA_IS_DANCING
- 
SPEED_MODIFIER_BABY_UUID
- 
SPEED_MODIFIER_BABY
- 
MAX_HEALTHprivate static final int MAX_HEALTH- See Also:
 
- 
MOVEMENT_SPEED_WHEN_FIGHTINGprivate static final float MOVEMENT_SPEED_WHEN_FIGHTING- See Also:
 
- 
ATTACK_DAMAGEprivate static final int ATTACK_DAMAGE- See Also:
 
- 
CROSSBOW_POWERprivate static final float CROSSBOW_POWER- See Also:
 
- 
CHANCE_OF_WEARING_EACH_ARMOUR_ITEMprivate static final float CHANCE_OF_WEARING_EACH_ARMOUR_ITEM- See Also:
 
- 
MAX_PASSENGERS_ON_ONE_HOGLINprivate static final int MAX_PASSENGERS_ON_ONE_HOGLIN- See Also:
 
- 
PROBABILITY_OF_SPAWNING_AS_BABYprivate static final float PROBABILITY_OF_SPAWNING_AS_BABY- See Also:
 
- 
BABY_EYE_HEIGHT_ADJUSTMENTprivate static final float BABY_EYE_HEIGHT_ADJUSTMENT- See Also:
 
- 
PROBABILITY_OF_SPAWNING_WITH_CROSSBOW_INSTEAD_OF_SWORDprivate static final double PROBABILITY_OF_SPAWNING_WITH_CROSSBOW_INSTEAD_OF_SWORD- See Also:
 
- 
inventory
- 
cannotHuntprivate boolean cannotHunt
- 
SENSOR_TYPESprotected static final com.google.common.collect.ImmutableList<SensorType<? extends Sensor<? super Piglin>>> SENSOR_TYPES
- 
MEMORY_TYPES
 
- 
- 
Constructor Details- 
Piglin
 
- 
- 
Method Details- 
addAdditionalSaveData- Overrides:
- addAdditionalSaveDatain class- AbstractPiglin
 
- 
readAdditionalSaveData- Overrides:
- readAdditionalSaveDatain class- AbstractPiglin
 
- 
getInventory- Specified by:
- getInventoryin interface- InventoryCarrier
 
- 
dropCustomDeathLoot- Overrides:
- dropCustomDeathLootin class- Mob
 
- 
addToInventory
- 
canAddToInventory
- 
defineSynchedDataprotected void defineSynchedData()- Overrides:
- defineSynchedDatain class- AbstractPiglin
 
- 
onSyncedDataUpdated- Overrides:
- onSyncedDataUpdatedin class- LivingEntity
 
- 
createAttributes
- 
checkPiglinSpawnRulespublic static boolean checkPiglinSpawnRules(EntityType<Piglin> p_219198_, LevelAccessor p_219199_, MobSpawnType p_219200_, BlockPos p_219201_, RandomSource p_219202_) 
- 
finalizeSpawn@Nullable public SpawnGroupData finalizeSpawn(ServerLevelAccessor p_34717_, DifficultyInstance p_34718_, MobSpawnType p_34719_, @Nullable SpawnGroupData p_34720_, @Nullable CompoundTag p_34721_) Description copied from class:MobForge: Override-Only, call via ForgeEventFactory.onFinalizeSpawn.
 Overrides are allowed. Do not wrap super calls within override (as that will cause stack overflows).
 Vanilla calls are replaced with a transformer, and are not visible in source.
 Be certain to either call super.finalizeSpawn or set the Mob.spawnTypefield from within your override.- Overrides:
- finalizeSpawnin class- Mob
 
- 
shouldDespawnInPeacefulprotected boolean shouldDespawnInPeaceful()- Overrides:
- shouldDespawnInPeacefulin class- Monster
 
- 
removeWhenFarAwaypublic boolean removeWhenFarAway(double p_34775_) - Overrides:
- removeWhenFarAwayin class- Mob
 
- 
populateDefaultEquipmentSlots- Overrides:
- populateDefaultEquipmentSlotsin class- Mob
 
- 
maybeWearArmor
- 
brainProvider- Overrides:
- brainProviderin class- LivingEntity
 
- 
makeBrain- Overrides:
- makeBrainin class- LivingEntity
 
- 
getBrain- Overrides:
- getBrainin class- LivingEntity
 
- 
mobInteract- Overrides:
- mobInteractin class- Mob
 
- 
getStandingEyeHeight- Overrides:
- getStandingEyeHeightin class- AbstractPiglin
 
- 
setBabypublic void setBaby(boolean p_34729_) 
- 
isBabypublic boolean isBaby()- Overrides:
- isBabyin class- LivingEntity
 
- 
setCannotHuntprivate void setCannotHunt(boolean p_34792_) 
- 
canHuntprotected boolean canHunt()- Specified by:
- canHuntin class- AbstractPiglin
 
- 
customServerAiStepprotected void customServerAiStep()- Overrides:
- customServerAiStepin class- AbstractPiglin
 
- 
getExperienceRewardpublic int getExperienceReward()- Overrides:
- getExperienceRewardin class- Mob
 
- 
finishConversion- Overrides:
- finishConversionin class- AbstractPiglin
 
- 
createSpawnWeapon
- 
isChargingCrossbowprivate boolean isChargingCrossbow()
- 
setChargingCrossbowpublic void setChargingCrossbow(boolean p_34753_) - Specified by:
- setChargingCrossbowin interface- CrossbowAttackMob
 
- 
onCrossbowAttackPerformedpublic void onCrossbowAttackPerformed()- Specified by:
- onCrossbowAttackPerformedin interface- CrossbowAttackMob
 
- 
getArmPose- Specified by:
- getArmPosein class- AbstractPiglin
 
- 
isDancingpublic boolean isDancing()
- 
setDancingpublic void setDancing(boolean p_34790_) 
- 
hurt- Overrides:
- hurtin class- LivingEntity
 
- 
performRangedAttack- Specified by:
- performRangedAttackin interface- RangedAttackMob
 
- 
shootCrossbowProjectilepublic void shootCrossbowProjectile(LivingEntity p_34707_, ItemStack p_34708_, Projectile p_34709_, float p_34710_) - Specified by:
- shootCrossbowProjectilein interface- CrossbowAttackMob
 
- 
canFireProjectileWeapon- Overrides:
- canFireProjectileWeaponin class- Mob
 
- 
holdInMainHand
- 
holdInOffHand
- 
wantsToPickUp- Overrides:
- wantsToPickUpin class- Mob
 
- 
canReplaceCurrentItem
- 
canReplaceCurrentItem- Overrides:
- canReplaceCurrentItemin class- Mob
 
- 
pickUpItem- Overrides:
- pickUpItemin class- Mob
 
- 
startRiding- Overrides:
- startRidingin class- Mob
 
- 
getTopPassenger
- 
getAmbientSound- Overrides:
- getAmbientSoundin class- Mob
 
- 
getHurtSound- Overrides:
- getHurtSoundin class- Monster
 
- 
getDeathSound- Overrides:
- getDeathSoundin class- Monster
 
- 
playStepSound- Overrides:
- playStepSoundin class- Entity
 
- 
playSoundEvent
- 
playConvertedSoundprotected void playConvertedSound()- Specified by:
- playConvertedSoundin class- AbstractPiglin
 
 
-