Class PiglinEntity
- java.lang.Object
-
- All Implemented Interfaces:
ICommandSource,ICrossbowUser,IRangedAttackMob,IMob,INameable,ICapabilityProvider,ICapabilitySerializable<CompoundNBT>,IForgeEntity,INBTSerializable<CompoundNBT>
public class PiglinEntity extends AbstractPiglinEntity implements ICrossbowUser
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.IMoveCallback
-
-
Field Summary
Fields Modifier and Type Field Description private booleancannotHuntprivate static DataParameter<java.lang.Boolean>DATA_BABY_IDprivate static DataParameter<java.lang.Boolean>DATA_IS_CHARGING_CROSSBOWprivate static DataParameter<java.lang.Boolean>DATA_IS_DANCINGprivate Inventoryinventoryprotected static com.google.common.collect.ImmutableList<MemoryModuleType<?>>MEMORY_TYPESprotected static com.google.common.collect.ImmutableList<SensorType<? extends Sensor<? super PiglinEntity>>>SENSOR_TYPESprivate static AttributeModifierSPEED_MODIFIER_BABYprivate static java.util.UUIDSPEED_MODIFIER_BABY_UUID-
Fields inherited from class net.minecraft.entity.monster.piglin.AbstractPiglinEntity
DATA_IMMUNE_TO_ZOMBIFICATION, timeInOverworld
-
Fields inherited from class net.minecraft.entity.MobEntity
ambientSoundTime, armorDropChances, goalSelector, handDropChances, jumpControl, lookControl, moveControl, navigation, targetSelector, xpReward
-
Fields inherited from class net.minecraft.entity.LivingEntity
animationPosition, animationSpeed, animationSpeedOld, animStep, animStepO, attackAnim, attackStrengthTicker, autoSpinAttackTicks, brain, DATA_LIVING_ENTITY_FLAGS, dead, deathScore, deathTime, fallFlyTicks, flyingSpeed, hurtDir, hurtDuration, hurtTime, invulnerableDuration, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerTime, lerpHeadSteps, lerpSteps, lerpX, lerpXRot, lerpY, lerpYRot, lerpZ, lyHeadRot, noActionTime, oAttackAnim, oRun, removeArrowTime, removeStingerTime, rotA, rotOffs, run, SLEEPING_DIMENSIONS, swinging, swingingArm, swingTime, timeOffs, useItem, useItemRemaining, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zza
-
Fields inherited from class net.minecraft.entity.Entity
blocksBuilding, boardingCooldown, DATA_POSE, DATA_SHARED_FLAGS_ID, ENTITY_COUNTER, entityData, fallDistance, firstTick, fluidHeight, fluidOnEyes, forcedLoading, glowing, hasImpulse, horizontalCollision, hurtMarked, inChunk, invulnerableTime, isInsidePortal, level, LOGGER, maxUpStep, moveDist, noCulling, noPhysics, onGround, portalEntrancePos, portalTime, pushthrough, random, removed, stringUUID, stuckSpeedMultiplier, tickCount, uuid, verticalCollision, walkDist, walkDistO, wasEyeInWater, wasTouchingWater, xChunk, xo, xOld, xRot, xRotO, yChunk, yo, yOld, yRot, yRotO, zChunk, zo, zOld
-
Fields inherited from interface net.minecraft.command.ICommandSource
NULL
-
-
Constructor Summary
Constructors Constructor Description PiglinEntity(EntityType<? extends AbstractPiglinEntity> p_i231570_1_, World p_i231570_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAdditionalSaveData(CompoundNBT p_213281_1_)protected ItemStackaddToInventory(ItemStack p_234436_1_)protected Brain.BrainCodec<PiglinEntity>brainProvider()protected booleancanAddToInventory(ItemStack p_234437_1_)booleancanFireProjectileWeapon(ShootableItem p_230280_1_)protected booleancanHunt()protected booleancanReplaceCurrentItem(ItemStack p_234440_1_)protected booleancanReplaceCurrentItem(ItemStack p_208003_1_, ItemStack p_208003_2_)static booleancheckPiglinSpawnRules(EntityType<PiglinEntity> p_234418_0_, IWorld p_234418_1_, SpawnReason p_234418_2_, BlockPos p_234418_3_, java.util.Random p_234418_4_)static AttributeModifierMap.MutableAttributecreateAttributes()private ItemStackcreateSpawnWeapon()protected voidcustomServerAiStep()protected voiddefineSynchedData()protected voiddropCustomDeathLoot(DamageSource p_213333_1_, int p_213333_2_, boolean p_213333_3_)ILivingEntityDatafinalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)protected voidfinishConversion(ServerWorld p_234416_1_)protected SoundEventgetAmbientSound()PiglinActiongetArmPose()Brain<PiglinEntity>getBrain()protected SoundEventgetDeathSound()protected intgetExperienceReward(PlayerEntity p_70693_1_)protected SoundEventgetHurtSound(DamageSource p_184601_1_)doublegetPassengersRidingOffset()protected floatgetStandingEyeHeight(Pose p_213348_1_, EntitySize p_213348_2_)private EntitygetTopPassenger(Entity p_234417_1_, int p_234417_2_)protected voidholdInMainHand(ItemStack p_234438_1_)protected voidholdInOffHand(ItemStack p_234439_1_)booleanhurt(DamageSource p_70097_1_, float p_70097_2_)booleanisBaby()private booleanisChargingCrossbow()booleanisDancing()protected Brain<?>makeBrain(com.mojang.serialization.Dynamic<?> p_213364_1_)private voidmaybeWearArmor(EquipmentSlotType p_234419_1_, ItemStack p_234419_2_)ActionResultTypemobInteract(PlayerEntity p_230254_1_, Hand p_230254_2_)voidonCrossbowAttackPerformed()voidonSyncedDataUpdated(DataParameter<?> p_184206_1_)voidperformRangedAttack(LivingEntity p_82196_1_, float p_82196_2_)protected voidpickUpItem(ItemEntity p_175445_1_)protected voidplayConvertedSound()protected voidplaySound(SoundEvent p_241417_1_)protected voidplayStepSound(BlockPos p_180429_1_, BlockState p_180429_2_)protected voidpopulateDefaultEquipmentSlots(DifficultyInstance p_180481_1_)voidreadAdditionalSaveData(CompoundNBT p_70037_1_)booleanremoveWhenFarAway(double p_213397_1_)voidsetBaby(boolean p_82227_1_)private voidsetCannotHunt(boolean p_234443_1_)voidsetChargingCrossbow(boolean p_213671_1_)voidsetDancing(boolean p_234442_1_)voidshootCrossbowProjectile(LivingEntity p_230284_1_, ItemStack p_230284_2_, ProjectileEntity p_230284_3_, float p_230284_4_)protected booleanshouldDespawnInPeaceful()booleanstartRiding(Entity p_184205_1_, boolean p_184205_2_)booleanwantsToPickUp(ItemStack p_230293_1_)-
Methods inherited from class net.minecraft.entity.monster.piglin.AbstractPiglinEntity
getMyRidingOffset, getTarget, isAdult, isConverting, isHoldingMeleeWeapon, isImmuneToZombification, playAmbientSound, sendDebugPackets, setImmuneToZombification
-
Methods inherited from class net.minecraft.entity.monster.MonsterEntity
aiStep, checkAnyLightMonsterSpawnRules, checkMonsterSpawnRules, createMonsterAttributes, getFallDamageSound, getProjectile, getSoundSource, getSwimSound, getSwimSplashSound, getWalkTargetValue, isDarkEnoughToSpawn, isPreventingPlayerRest, shouldDropExperience, shouldDropLoot, updateNoActionTime
-
Methods inherited from class net.minecraft.entity.CreatureEntity
checkSpawnRules, followLeashSpeed, getWalkTargetValue, isPathFinding, onLeashDistance, tickLeash
-
Methods inherited from class net.minecraft.entity.MobEntity
ate, baseTick, canAttack, canAttackType, canBeControlledByRider, canBeLeashed, canCutCorner, canHoldItem, canPickUpLoot, canReplaceEqualItem, canTakeItem, checkDespawn, checkMobSpawnRules, checkSpawnObstruction, convertTo, createBodyControl, createLootContext, createMobAttributes, createNavigation, doHurtTarget, dropFromLootTable, dropLeash, enchantSpawnedArmor, enchantSpawnedWeapon, equipItemIfPossible, getAmbientSoundInterval, getArmorSlots, getDefaultLootTable, getEquipmentDropChance, getEquipmentForSlot, getEquipmentSlotForItem, getHandSlots, getHeadRotSpeed, getItemBySlot, getJumpControl, getLeashHolder, getLookControl, getLootTable, getMainArm, getMaxFallDistance, getMaxHeadXRot, getMaxHeadYRot, getMaxSpawnClusterSize, getMoveControl, getNavigation, getPathfindingMalus, getRestrictCenter, getRestrictRadius, getSensing, handleEntityEvent, hasRestriction, interact, isAggressive, isControlledByLocalInstance, isEffectiveAi, isLeashed, isLeftHanded, isMaxGroupSizeReached, isNoAi, isPersistenceRequired, isSunBurnTick, isValidSlotForItem, isWithinRestriction, isWithinRestriction, jumpInLiquid, lookAt, onOffspringSpawnedFromEgg, playHurtSound, populateDefaultEquipmentEnchantments, registerGoals, removeAfterChangingDimensions, requiresCustomPersistence, restrictTo, serverAiStep, setAggressive, setCanPickUpLoot, setDelayedLeashHolderId, setDropChance, setGuaranteedDrop, setItemSlot, setItemSlotAndDropWhenKilled, setLeashedTo, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, setSlot, setSpeed, setTarget, setXxa, setYya, setZza, shouldPassengersInheritMalus, spawnAnim, tick, tickHeadTurn, updateControlFlags
-
Methods inherited from class net.minecraft.entity.LivingEntity
actuallyHurt, addEffect, animateHurt, areAllEffectsAmbient, attackable, blockedByShield, blockUsingShield, broadcastBreakEvent, broadcastBreakEvent, calculateEntityAnimation, calculateFallDamage, canAttack, canBeAffected, canBreatheUnderwater, canSee, canSpawnSoulSpeedParticle, canStandOnFluid, causeFallDamage, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, curePotionEffects, decreaseAirSupply, die, doAutoAttackOnTouch, doPush, dropAllDeathLoot, dropEquipment, dropExperience, eat, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getAddEntityPacket, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, getCapability, getCombatTracker, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDimensions, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getEyeHeight, getFallFlyingTicks, getFeetBlockState, getFluidFallingAdjustedMovement, getHealth, getItemInHand, getJumpPower, getKillCredit, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getMainHandItem, getMaxHealth, getMobType, getNoActionTime, getOffhandItem, getRandom, getRelativePortalPosition, getScale, getSleepingPos, getSoundVolume, getSpeed, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, heal, hurtArmor, hurtCurrentlyUsedShield, increaseAirSupply, invalidateCaps, isAffectedByFluids, isAffectedByPotions, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBlocking, isDeadOrDying, isFallFlying, isHolding, isHolding, isImmobile, isInvertedHealAndHarm, isInWall, isPickable, isPushable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, kill, knockback, lerpHeadTo, lerpTo, lookAt, markHurt, onChangedBlock, onClimbable, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onItemPickup, onLeaveCombat, onSoulSpeedBlock, outOfWorld, playBlockFallSound, playEquipSound, push, pushEntities, randomTeleport, releaseUsingItem, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeSoulSpeed, resetForwardDirectionOfRelativePortalPosition, rideableUnderWater, rideTick, setAbsorptionAmount, setArrowCount, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setOnGround, setRecordPlayingNearby, setSleepingPos, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldRemoveSoulSpeed, shouldRiderFaceForward, shouldShowName, spawnSoulSpeedParticle, startAutoSpinAttack, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, travel, triggerItemUseEffects, tryAddSoulSpeed, updateEffectVisibility, updateInvisibilityStatus, updateSwingTime
-
Methods inherited from class net.minecraft.entity.Entity
absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addPassenger, addTag, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canChangeDimensions, canCollideWith, canEnterPose, canRide, canSpawnSprintParticle, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkAndResetForcedChunkAdditionFlag, checkAndResetUpdateChunkPos, checkInsideBlocks, clearFire, closerThan, collideBoundingBox, collideBoundingBoxHeuristically, collideBoundingBoxLegacy, copyPosition, createCommandSourceStack, createHoverEvent, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, getAirSupply, getAllSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBoundingBox, getBoundingBoxForPose, getBrightness, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControllingPassenger, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyePosition, getEyeY, getFireImmuneTicks, getFluidHeight, getFluidJumpThreshold, getForward, getHorizontalDistanceSqr, getId, getIndirectPassengers, getLeashOffset, getLightProbePosition, getLookAngle, getMaxAirSupply, getMotionDirection, getName, getOnPos, getPacketCoordinates, getPassengers, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalWaitTime, getPose, getPosition, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getStringUUID, getSwimHighSpeedSplashSound, getTags, getTeam, getTeamColor, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getX, getX, getY, getY, getZ, getZ, handleInsidePortal, handleNetherPortal, hasCustomName, hashCode, hasIndirectPassenger, hasOnePlayerPassenger, hasPassenger, hasPassenger, hasPermissions, ignoreExplosion, interactAt, is, isAddedToWorld, isAlliedTo, isAlliedTo, isAttackable, isColliding, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFree, isGlowing, isIgnoringBlockTriggers, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isMovementNoisy, isNoGravity, isOnFire, isOnGround, isOnPortalCooldown, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, killed, lavaHurt, lerpMotion, limitPistonMovement, load, makeFlySound, makeStuckInBlock, maybeBackOffFromEdge, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, pick, playerTouch, playFlySound, playSound, playSwimSound, position, positionRider, processPortalCooldown, push, reapplyPosition, refreshDimensions, remove, remove, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetPos, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setGlowing, setId, setInvisible, setInvulnerable, setLevel, setLocationFromBoundingbox, setNoGravity, setPacketCoordinates, setPacketCoordinates, setPortalCooldown, setPos, setPosAndOldPos, setPose, setPosRaw, setRemainingFireTicks, setRot, setSecondsOnFire, setSharedFlag, setShiftKeyDown, setSilent, setSwimming, setUUID, setViewScale, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startSeenByPlayer, stopSeenByPlayer, teleportTo, teleportToWithTicket, thunderHit, toString, turn, unRide, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming
-
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, reviveCaps, serializeCaps
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability
-
Methods inherited from interface net.minecraft.entity.ICrossbowUser
getProjectileShotVector, getTarget, performCrossbowAttack, shootCrossbowProjectile
-
Methods inherited from interface net.minecraftforge.common.extensions.IForgeEntity
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getDimensionsForge, getEntity, getEyeHeightForge, getParts, getPickedResult, isMultipartEntity, serializeNBT, shouldRiderSit
-
-
-
-
Field Detail
-
DATA_BABY_ID
private static final DataParameter<java.lang.Boolean> DATA_BABY_ID
-
DATA_IS_CHARGING_CROSSBOW
private static final DataParameter<java.lang.Boolean> DATA_IS_CHARGING_CROSSBOW
-
DATA_IS_DANCING
private static final DataParameter<java.lang.Boolean> DATA_IS_DANCING
-
SPEED_MODIFIER_BABY_UUID
private static final java.util.UUID SPEED_MODIFIER_BABY_UUID
-
SPEED_MODIFIER_BABY
private static final AttributeModifier SPEED_MODIFIER_BABY
-
inventory
private final Inventory inventory
-
cannotHunt
private boolean cannotHunt
-
SENSOR_TYPES
protected static final com.google.common.collect.ImmutableList<SensorType<? extends Sensor<? super PiglinEntity>>> SENSOR_TYPES
-
MEMORY_TYPES
protected static final com.google.common.collect.ImmutableList<MemoryModuleType<?>> MEMORY_TYPES
-
-
Constructor Detail
-
PiglinEntity
public PiglinEntity(EntityType<? extends AbstractPiglinEntity> p_i231570_1_, World p_i231570_2_)
-
-
Method Detail
-
addAdditionalSaveData
public void addAdditionalSaveData(CompoundNBT p_213281_1_)
- Overrides:
addAdditionalSaveDatain classAbstractPiglinEntity
-
readAdditionalSaveData
public void readAdditionalSaveData(CompoundNBT p_70037_1_)
- Overrides:
readAdditionalSaveDatain classAbstractPiglinEntity
-
dropCustomDeathLoot
protected void dropCustomDeathLoot(DamageSource p_213333_1_, int p_213333_2_, boolean p_213333_3_)
- Overrides:
dropCustomDeathLootin classMobEntity
-
canAddToInventory
protected boolean canAddToInventory(ItemStack p_234437_1_)
-
defineSynchedData
protected void defineSynchedData()
- Overrides:
defineSynchedDatain classAbstractPiglinEntity
-
onSyncedDataUpdated
public void onSyncedDataUpdated(DataParameter<?> p_184206_1_)
- Overrides:
onSyncedDataUpdatedin classLivingEntity
-
createAttributes
public static AttributeModifierMap.MutableAttribute createAttributes()
-
checkPiglinSpawnRules
public static boolean checkPiglinSpawnRules(EntityType<PiglinEntity> p_234418_0_, IWorld p_234418_1_, SpawnReason p_234418_2_, BlockPos p_234418_3_, java.util.Random p_234418_4_)
-
finalizeSpawn
@Nullable public ILivingEntityData finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, @Nullable ILivingEntityData p_213386_4_, @Nullable CompoundNBT p_213386_5_)
- Overrides:
finalizeSpawnin classMobEntity
-
shouldDespawnInPeaceful
protected boolean shouldDespawnInPeaceful()
- Overrides:
shouldDespawnInPeacefulin classMonsterEntity
-
removeWhenFarAway
public boolean removeWhenFarAway(double p_213397_1_)
- Overrides:
removeWhenFarAwayin classMobEntity
-
populateDefaultEquipmentSlots
protected void populateDefaultEquipmentSlots(DifficultyInstance p_180481_1_)
- Overrides:
populateDefaultEquipmentSlotsin classMobEntity
-
maybeWearArmor
private void maybeWearArmor(EquipmentSlotType p_234419_1_, ItemStack p_234419_2_)
-
brainProvider
protected Brain.BrainCodec<PiglinEntity> brainProvider()
- Overrides:
brainProviderin classLivingEntity
-
makeBrain
protected Brain<?> makeBrain(com.mojang.serialization.Dynamic<?> p_213364_1_)
- Overrides:
makeBrainin classLivingEntity
-
getBrain
public Brain<PiglinEntity> getBrain()
- Overrides:
getBrainin classLivingEntity
-
mobInteract
public ActionResultType mobInteract(PlayerEntity p_230254_1_, Hand p_230254_2_)
- Overrides:
mobInteractin classMobEntity
-
getStandingEyeHeight
protected float getStandingEyeHeight(Pose p_213348_1_, EntitySize p_213348_2_)
- Overrides:
getStandingEyeHeightin classLivingEntity
-
getPassengersRidingOffset
public double getPassengersRidingOffset()
- Overrides:
getPassengersRidingOffsetin classEntity
-
isBaby
public boolean isBaby()
- Overrides:
isBabyin classLivingEntity
-
setCannotHunt
private void setCannotHunt(boolean p_234443_1_)
-
canHunt
protected boolean canHunt()
- Specified by:
canHuntin classAbstractPiglinEntity
-
customServerAiStep
protected void customServerAiStep()
- Overrides:
customServerAiStepin classAbstractPiglinEntity
-
getExperienceReward
protected int getExperienceReward(PlayerEntity p_70693_1_)
- Overrides:
getExperienceRewardin classMobEntity
-
finishConversion
protected void finishConversion(ServerWorld p_234416_1_)
- Overrides:
finishConversionin classAbstractPiglinEntity
-
createSpawnWeapon
private ItemStack createSpawnWeapon()
-
isChargingCrossbow
private boolean isChargingCrossbow()
-
setChargingCrossbow
public void setChargingCrossbow(boolean p_213671_1_)
- Specified by:
setChargingCrossbowin interfaceICrossbowUser
-
onCrossbowAttackPerformed
public void onCrossbowAttackPerformed()
- Specified by:
onCrossbowAttackPerformedin interfaceICrossbowUser
-
getArmPose
public PiglinAction getArmPose()
- Specified by:
getArmPosein classAbstractPiglinEntity
-
isDancing
public boolean isDancing()
-
setDancing
public void setDancing(boolean p_234442_1_)
-
hurt
public boolean hurt(DamageSource p_70097_1_, float p_70097_2_)
- Overrides:
hurtin classMonsterEntity
-
performRangedAttack
public void performRangedAttack(LivingEntity p_82196_1_, float p_82196_2_)
- Specified by:
performRangedAttackin interfaceIRangedAttackMob
-
shootCrossbowProjectile
public void shootCrossbowProjectile(LivingEntity p_230284_1_, ItemStack p_230284_2_, ProjectileEntity p_230284_3_, float p_230284_4_)
- Specified by:
shootCrossbowProjectilein interfaceICrossbowUser
-
canFireProjectileWeapon
public boolean canFireProjectileWeapon(ShootableItem p_230280_1_)
- Overrides:
canFireProjectileWeaponin classMobEntity
-
holdInMainHand
protected void holdInMainHand(ItemStack p_234438_1_)
-
holdInOffHand
protected void holdInOffHand(ItemStack p_234439_1_)
-
wantsToPickUp
public boolean wantsToPickUp(ItemStack p_230293_1_)
- Overrides:
wantsToPickUpin classMobEntity
-
canReplaceCurrentItem
protected boolean canReplaceCurrentItem(ItemStack p_234440_1_)
-
canReplaceCurrentItem
protected boolean canReplaceCurrentItem(ItemStack p_208003_1_, ItemStack p_208003_2_)
- Overrides:
canReplaceCurrentItemin classMobEntity
-
pickUpItem
protected void pickUpItem(ItemEntity p_175445_1_)
- Overrides:
pickUpItemin classMobEntity
-
startRiding
public boolean startRiding(Entity p_184205_1_, boolean p_184205_2_)
- Overrides:
startRidingin classMobEntity
-
getAmbientSound
protected SoundEvent getAmbientSound()
- Overrides:
getAmbientSoundin classMobEntity
-
getHurtSound
protected SoundEvent getHurtSound(DamageSource p_184601_1_)
- Overrides:
getHurtSoundin classMonsterEntity
-
getDeathSound
protected SoundEvent getDeathSound()
- Overrides:
getDeathSoundin classMonsterEntity
-
playStepSound
protected void playStepSound(BlockPos p_180429_1_, BlockState p_180429_2_)
- Overrides:
playStepSoundin classEntity
-
playSound
protected void playSound(SoundEvent p_241417_1_)
-
playConvertedSound
protected void playConvertedSound()
- Specified by:
playConvertedSoundin classAbstractPiglinEntity
-
-