Package net.minecraft.entity.boss.dragon
Class EnderDragonEntity
- java.lang.Object
-
- net.minecraftforge.common.capabilities.CapabilityProvider<Entity>
-
- net.minecraft.entity.Entity
-
- net.minecraft.entity.LivingEntity
-
- net.minecraft.entity.MobEntity
-
- net.minecraft.entity.boss.dragon.EnderDragonEntity
-
- All Implemented Interfaces:
ICommandSource,IMob,INameable,ICapabilityProvider,ICapabilitySerializable<CompoundNBT>,IForgeEntity,INBTSerializable<CompoundNBT>
public class EnderDragonEntity extends MobEntity implements IMob
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.IMoveCallback
-
-
Field Summary
Fields Modifier and Type Field Description private EnderDragonPartEntitybodyprivate static EntityPredicateCRYSTAL_DESTROY_TARGETINGstatic DataParameter<java.lang.Integer>DATA_PHASEintdragonDeathTimeprivate DragonFightManagerdragonFightfloatflapTimeprivate intgrowlTimeEnderDragonPartEntityheadbooleaninWallprivate static org.apache.logging.log4j.LoggerLOGGEREnderCrystalEntitynearestCrystalprivate EnderDragonPartEntityneckprivate int[]nodeAdjacencyprivate PathPoint[]nodesfloatoFlapTimeprivate PathHeapopenSetprivate PhaseManagerphaseManagerdouble[][]positionsintposPointerprivate intsittingDamageReceivedprivate EnderDragonPartEntity[]subEntitiesprivate EnderDragonPartEntitytail1private EnderDragonPartEntitytail2private EnderDragonPartEntitytail3private EnderDragonPartEntitywing1private EnderDragonPartEntitywing2floatyRotA-
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, 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 EnderDragonEntity(EntityType<? extends EnderDragonEntity> p_i50230_1_, World p_i50230_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAdditionalSaveData(CompoundNBT p_213281_1_)booleanaddEffect(EffectInstance p_195064_1_)voidaiStep()booleancanChangeDimensions()protected booleancanRide(Entity p_184228_1_)private voidcheckCrystals()voidcheckDespawn()private booleancheckWalls(AxisAlignedBB p_70972_1_)static AttributeModifierMap.MutableAttributecreateAttributes()protected voiddefineSynchedData()private voiddropExperience(int p_184668_1_)intfindClosestNode()intfindClosestNode(double p_184663_1_, double p_184663_3_, double p_184663_5_)PathfindPath(int p_184666_1_, int p_184666_2_, PathPoint p_184666_3_)protected SoundEventgetAmbientSound()DragonFightManagergetDragonFight()Vector3dgetHeadLookVector(float p_184665_1_)floatgetHeadPartYOffset(int p_184667_1_, double[] p_184667_2_, double[] p_184667_3_)private floatgetHeadYOffset()protected SoundEventgetHurtSound(DamageSource p_184601_1_)double[]getLatencyPos(int p_70974_1_, float p_70974_2_)PartEntity<?>[]getParts()Gets the individual sub parts that make up this entity.PhaseManagergetPhaseManager()SoundCategorygetSoundSource()protected floatgetSoundVolume()EnderDragonPartEntity[]getSubEntities()private voidhurt(java.util.List<Entity> p_70971_1_)booleanhurt(EnderDragonPartEntity p_213403_1_, DamageSource p_213403_2_, float p_213403_3_)booleanhurt(DamageSource p_70097_1_, float p_70097_2_)booleanisMultipartEntity()This is used to specify that your entity has multiple individual parts, such as the Vanilla Ender Dragon.booleanisPickable()voidkill()private voidknockBack(java.util.List<Entity> p_70970_1_)voidonCrystalDestroyed(EnderCrystalEntity p_184672_1_, BlockPos p_184672_2_, DamageSource p_184672_3_)voidonSyncedDataUpdated(DataParameter<?> p_184206_1_)voidreadAdditionalSaveData(CompoundNBT p_70037_1_)protected booleanreallyHurt(DamageSource p_82195_1_, float p_82195_2_)private PathreconstructPath(PathPoint p_184669_1_, PathPoint p_184669_2_)private floatrotWrap(double p_70973_1_)voidsetId(int p_145769_1_)protected voidtickDeath()private voidtickPart(EnderDragonPartEntity p_226526_1_, double p_226526_2_, double p_226526_4_, double p_226526_6_)-
Methods inherited from class net.minecraft.entity.MobEntity
ate, baseTick, canAttack, canAttackType, canBeControlledByRider, canBeLeashed, canCutCorner, canFireProjectileWeapon, canHoldItem, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, canTakeItem, checkMobSpawnRules, checkSpawnObstruction, checkSpawnRules, convertTo, createBodyControl, createLootContext, createMobAttributes, createNavigation, customServerAiStep, doHurtTarget, dropCustomDeathLoot, dropFromLootTable, dropLeash, enchantSpawnedArmor, enchantSpawnedWeapon, equipItemIfPossible, finalizeSpawn, getAmbientSoundInterval, getArmorSlots, getDefaultLootTable, getEquipmentDropChance, getEquipmentForSlot, getEquipmentSlotForItem, getExperienceReward, getHandSlots, getHeadRotSpeed, getItemBySlot, getJumpControl, getLeashHolder, getLookControl, getLootTable, getMainArm, getMaxFallDistance, getMaxHeadXRot, getMaxHeadYRot, getMaxSpawnClusterSize, getMoveControl, getNavigation, getPathfindingMalus, getRestrictCenter, getRestrictRadius, getSensing, getTarget, handleEntityEvent, hasRestriction, interact, isAggressive, isControlledByLocalInstance, isEffectiveAi, isLeashed, isLeftHanded, isMaxGroupSizeReached, isNoAi, isPersistenceRequired, isSunBurnTick, isValidSlotForItem, isWithinRestriction, isWithinRestriction, jumpInLiquid, lookAt, mobInteract, onOffspringSpawnedFromEgg, pickUpItem, playAmbientSound, playHurtSound, populateDefaultEquipmentEnchantments, populateDefaultEquipmentSlots, registerGoals, removeAfterChangingDimensions, removeWhenFarAway, requiresCustomPersistence, restrictTo, sendDebugPackets, serverAiStep, setAggressive, setBaby, setCanPickUpLoot, setDelayedLeashHolderId, setDropChance, setGuaranteedDrop, setItemSlot, setItemSlotAndDropWhenKilled, setLeashedTo, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, setSlot, setSpeed, setTarget, setXxa, setYya, setZza, shouldDespawnInPeaceful, shouldPassengersInheritMalus, spawnAnim, startRiding, tick, tickHeadTurn, tickLeash, updateControlFlags, wantsToPickUp
-
Methods inherited from class net.minecraft.entity.LivingEntity
actuallyHurt, animateHurt, areAllEffectsAmbient, attackable, blockedByShield, blockUsingShield, brainProvider, 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, getBrain, getCapability, getCombatTracker, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDeathSound, getDimensions, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getEyeHeight, getFallDamageSound, getFallFlyingTicks, getFeetBlockState, getFluidFallingAdjustedMovement, getHealth, getItemInHand, getJumpPower, getKillCredit, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getMainHandItem, getMaxHealth, getMobType, getNoActionTime, getOffhandItem, getProjectile, getRandom, getRelativePortalPosition, getScale, getSleepingPos, getSpeed, getStandingEyeHeight, 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, isBaby, isBlocking, isDeadOrDying, isFallFlying, isHolding, isHolding, isImmobile, isInvertedHealAndHarm, isInWall, isPushable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, knockback, lerpHeadTo, lerpTo, lookAt, makeBrain, 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, shouldDropExperience, shouldDropLoot, shouldRemoveSoulSpeed, shouldRiderFaceForward, shouldShowName, spawnSoulSpeedParticle, startAutoSpinAttack, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, 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, canCollideWith, canEnterPose, 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, getMyRidingOffset, getName, getOnPos, getPacketCoordinates, getPassengers, getPassengersRidingOffset, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalWaitTime, getPose, getPosition, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, 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, playStepSound, 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, 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.minecraftforge.common.extensions.IForgeEntity
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getDimensionsForge, getEntity, getEyeHeightForge, getPickedResult, serializeNBT, shouldRiderSit
-
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
DATA_PHASE
public static final DataParameter<java.lang.Integer> DATA_PHASE
-
CRYSTAL_DESTROY_TARGETING
private static final EntityPredicate CRYSTAL_DESTROY_TARGETING
-
positions
public final double[][] positions
-
posPointer
public int posPointer
-
subEntities
private final EnderDragonPartEntity[] subEntities
-
head
public final EnderDragonPartEntity head
-
neck
private final EnderDragonPartEntity neck
-
body
private final EnderDragonPartEntity body
-
tail1
private final EnderDragonPartEntity tail1
-
tail2
private final EnderDragonPartEntity tail2
-
tail3
private final EnderDragonPartEntity tail3
-
wing1
private final EnderDragonPartEntity wing1
-
wing2
private final EnderDragonPartEntity wing2
-
oFlapTime
public float oFlapTime
-
flapTime
public float flapTime
-
inWall
public boolean inWall
-
dragonDeathTime
public int dragonDeathTime
-
yRotA
public float yRotA
-
nearestCrystal
@Nullable public EnderCrystalEntity nearestCrystal
-
dragonFight
@Nullable private final DragonFightManager dragonFight
-
phaseManager
private final PhaseManager phaseManager
-
growlTime
private int growlTime
-
sittingDamageReceived
private int sittingDamageReceived
-
nodes
private final PathPoint[] nodes
-
nodeAdjacency
private final int[] nodeAdjacency
-
openSet
private final PathHeap openSet
-
-
Constructor Detail
-
EnderDragonEntity
public EnderDragonEntity(EntityType<? extends EnderDragonEntity> p_i50230_1_, World p_i50230_2_)
-
-
Method Detail
-
createAttributes
public static AttributeModifierMap.MutableAttribute createAttributes()
-
defineSynchedData
protected void defineSynchedData()
- Overrides:
defineSynchedDatain classMobEntity
-
getLatencyPos
public double[] getLatencyPos(int p_70974_1_, float p_70974_2_)
-
tickPart
private void tickPart(EnderDragonPartEntity p_226526_1_, double p_226526_2_, double p_226526_4_, double p_226526_6_)
-
getHeadYOffset
private float getHeadYOffset()
-
checkCrystals
private void checkCrystals()
-
knockBack
private void knockBack(java.util.List<Entity> p_70970_1_)
-
hurt
private void hurt(java.util.List<Entity> p_70971_1_)
-
rotWrap
private float rotWrap(double p_70973_1_)
-
checkWalls
private boolean checkWalls(AxisAlignedBB p_70972_1_)
-
hurt
public boolean hurt(EnderDragonPartEntity p_213403_1_, DamageSource p_213403_2_, float p_213403_3_)
-
hurt
public boolean hurt(DamageSource p_70097_1_, float p_70097_2_)
- Overrides:
hurtin classLivingEntity
-
reallyHurt
protected boolean reallyHurt(DamageSource p_82195_1_, float p_82195_2_)
-
kill
public void kill()
- Overrides:
killin classLivingEntity
-
tickDeath
protected void tickDeath()
- Overrides:
tickDeathin classLivingEntity
-
dropExperience
private void dropExperience(int p_184668_1_)
-
findClosestNode
public int findClosestNode()
-
findClosestNode
public int findClosestNode(double p_184663_1_, double p_184663_3_, double p_184663_5_)
-
findPath
@Nullable public Path findPath(int p_184666_1_, int p_184666_2_, @Nullable PathPoint p_184666_3_)
-
addAdditionalSaveData
public void addAdditionalSaveData(CompoundNBT p_213281_1_)
- Overrides:
addAdditionalSaveDatain classMobEntity
-
readAdditionalSaveData
public void readAdditionalSaveData(CompoundNBT p_70037_1_)
- Overrides:
readAdditionalSaveDatain classMobEntity
-
checkDespawn
public void checkDespawn()
- Overrides:
checkDespawnin classMobEntity
-
getSubEntities
public EnderDragonPartEntity[] getSubEntities()
-
isPickable
public boolean isPickable()
- Overrides:
isPickablein classLivingEntity
-
getSoundSource
public SoundCategory getSoundSource()
- Overrides:
getSoundSourcein classEntity
-
getAmbientSound
protected SoundEvent getAmbientSound()
- Overrides:
getAmbientSoundin classMobEntity
-
getHurtSound
protected SoundEvent getHurtSound(DamageSource p_184601_1_)
- Overrides:
getHurtSoundin classLivingEntity
-
getSoundVolume
protected float getSoundVolume()
- Overrides:
getSoundVolumein classLivingEntity
-
getHeadPartYOffset
public float getHeadPartYOffset(int p_184667_1_, double[] p_184667_2_, double[] p_184667_3_)
-
getHeadLookVector
public Vector3d getHeadLookVector(float p_184665_1_)
-
onCrystalDestroyed
public void onCrystalDestroyed(EnderCrystalEntity p_184672_1_, BlockPos p_184672_2_, DamageSource p_184672_3_)
-
onSyncedDataUpdated
public void onSyncedDataUpdated(DataParameter<?> p_184206_1_)
- Overrides:
onSyncedDataUpdatedin classLivingEntity
-
getPhaseManager
public PhaseManager getPhaseManager()
-
getDragonFight
@Nullable public DragonFightManager getDragonFight()
-
addEffect
public boolean addEffect(EffectInstance p_195064_1_)
- Overrides:
addEffectin classLivingEntity
-
canChangeDimensions
public boolean canChangeDimensions()
- Overrides:
canChangeDimensionsin classEntity
-
isMultipartEntity
public boolean isMultipartEntity()
Description copied from interface:IForgeEntityThis is used to specify that your entity has multiple individual parts, such as the Vanilla Ender Dragon. SeeEnderDragonEntityfor an example implementation.- Specified by:
isMultipartEntityin interfaceIForgeEntity- Returns:
- true if this is a multipart entity.
-
getParts
public PartEntity<?>[] getParts()
Description copied from interface:IForgeEntityGets the individual sub parts that make up this entity. The entities returned by this method are NOT saved to the world in nay way, they exist as an extension of their host entity. The child entity does not track its server-side(or client-side) counterpart, and the host entity is responsible for moving and managing these children. Only used ifIForgeEntity.isMultipartEntity()returns true. SeeEnderDragonEntityfor an example implementation.- Specified by:
getPartsin interfaceIForgeEntity- Returns:
- The child parts of this entity. The value to be returned here should be cached.
-
-