Class PackageEntity

java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.entity.Entity
net.minecraft.world.entity.LivingEntity
com.simibubi.create.content.logistics.box.PackageEntity
All Implemented Interfaces:
net.minecraft.commands.CommandSource, net.minecraft.network.syncher.SyncedDataHolder, net.minecraft.world.entity.Attackable, net.minecraft.world.level.entity.EntityAccess, net.minecraft.world.Nameable, net.minecraft.world.scores.ScoreHolder, net.neoforged.neoforge.attachment.IAttachmentHolder, net.neoforged.neoforge.common.extensions.IEntityExtension, net.neoforged.neoforge.common.extensions.ILivingEntityExtension, net.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>, net.neoforged.neoforge.entity.IEntityWithComplexSpawn

public class PackageEntity extends net.minecraft.world.entity.LivingEntity implements net.neoforged.neoforge.entity.IEntityWithComplexSpawn
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.entity.LivingEntity

    net.minecraft.world.entity.LivingEntity.Fallsounds

    Nested classes/interfaces inherited from class net.minecraft.world.entity.Entity

    net.minecraft.world.entity.Entity.MoveFunction, net.minecraft.world.entity.Entity.MovementEmission, net.minecraft.world.entity.Entity.RemovalReason

    Nested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    net.neoforged.neoforge.attachment.AttachmentHolder.AsField
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    net.minecraft.world.item.ItemStack
     
    net.minecraft.world.phys.Vec3
     
    int
     
    WeakReference<net.minecraft.world.entity.player.Player>
     
    net.minecraft.world.phys.Vec3
     
    net.minecraft.world.phys.Vec3
     

    Fields inherited from class net.minecraft.world.entity.LivingEntity

    animStep, animStepO, appliedScale, ARMOR_SLOT_OFFSET, ARMOR_SLOTS, attackAnim, attackStrengthTicker, ATTRIBUTES_FIELD, autoSpinAttackDmg, autoSpinAttackItemStack, autoSpinAttackTicks, BASE_JUMP_POWER, BODY_ARMOR_OFFSET, brain, damageContainers, DATA_LIVING_ENTITY_FLAGS, dead, DEATH_DURATION, deathScore, deathTime, DEFAULT_BABY_SCALE, DEFAULT_BASE_GRAVITY, 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, zza

    Fields inherited from class net.minecraft.world.entity.Entity

    BASE_SAFE_FALL_DISTANCE, BASE_TICKS_REQUIRED_TO_FREEZE, blocksBuilding, BOARDING_COOLDOWN, boardingCooldown, CONTENTS_SLOT_INDEX, 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, mainSupportingBlockPos, MAX_ENTITY_TAG_COUNT, minorHorizontalCollision, moveDist, noCulling, noPhysics, PASSENGERS_TAG, portalProcess, random, removalReason, stringUUID, stuckSpeedMultiplier, tickCount, TOTAL_AIR_SUPPLY, uuid, UUID_TAG, verticalCollision, verticalCollisionBelow, walkDist, walkDistO, wasEyeInWater, wasInPowderSnow, wasOnFire, wasTouchingWater, xo, xOld, xRotO, yo, yOld, yRotO, zo, zOld

    Fields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    ATTACHMENTS_NBT_KEY

    Fields inherited from interface net.minecraft.commands.CommandSource

    NULL

    Fields inherited from interface net.minecraft.world.scores.ScoreHolder

    WILDCARD, WILDCARD_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
    PackageEntity(net.minecraft.world.entity.EntityType<?> entityTypeIn, net.minecraft.world.level.Level worldIn)
     
    PackageEntity(net.minecraft.world.level.Level worldIn, double x, double y, double z)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAdditionalSaveData(net.minecraft.nbt.CompoundTag compound)
     
    static net.minecraft.world.entity.EntityType.Builder<?>
    build(net.minecraft.world.entity.EntityType.Builder<?> builder)
     
    boolean
     
    boolean
    canCollideWith(net.minecraft.world.entity.Entity pEntity)
     
    static boolean
    centerPackage(net.minecraft.world.entity.Entity entity, net.minecraft.world.phys.Vec3 target)
     
    static net.minecraft.world.entity.ai.attributes.AttributeSupplier.Builder
     
    boolean
    decreaseInsertionTimer(@Nullable net.minecraft.world.phys.Vec3 targetSpot)
     
    protected void
    dropAllDeathLoot(net.minecraft.server.level.ServerLevel level, net.minecraft.world.damagesource.DamageSource pDamageSource)
     
    boolean
     
    fromDroppedItem(net.minecraft.world.level.Level world, net.minecraft.world.entity.Entity originalEntity, net.minecraft.world.item.ItemStack itemstack)
     
    fromItemStack(net.minecraft.world.level.Level world, net.minecraft.world.phys.Vec3 position, net.minecraft.world.item.ItemStack itemstack)
     
     
    Iterable<net.minecraft.world.item.ItemStack>
     
    net.minecraft.world.item.ItemStack
     
    protected @Nullable net.minecraft.sounds.SoundEvent
     
    protected net.minecraft.world.entity.EntityDimensions
    getDefaultDimensions(net.minecraft.world.entity.Pose pose)
     
    net.minecraft.world.entity.LivingEntity.Fallsounds
     
    protected @Nullable net.minecraft.sounds.SoundEvent
    getHurtSound(net.minecraft.world.damagesource.DamageSource damageSourceIn)
     
    net.minecraft.world.item.ItemStack
    getItemBySlot(net.minecraft.world.entity.EquipmentSlot pSlot)
     
    net.minecraft.world.entity.HumanoidArm
     
    protected net.minecraft.world.phys.Vec3
    getPassengerAttachmentPoint(net.minecraft.world.entity.Entity entity, net.minecraft.world.entity.EntityDimensions dimensions, float partialTick)
     
    net.minecraft.world.phys.Vec3
    getPassengerRidingPosition(net.minecraft.world.entity.Entity entity)
     
    net.minecraft.world.item.ItemStack
    getPickedResult(net.minecraft.world.phys.HitResult target)
     
    net.minecraft.world.InteractionHand
     
    float
     
    boolean
    hurt(net.minecraft.world.damagesource.DamageSource source, float amount)
     
    net.minecraft.world.InteractionResult
    interact(net.minecraft.world.entity.player.Player pPlayer, net.minecraft.world.InteractionHand pHand)
     
    boolean
     
    boolean
     
    void
    lerpMotion(double x, double y, double z)
     
    protected void
    onInsideBlock(net.minecraft.world.level.block.state.BlockState state)
     
    void
    push(net.minecraft.world.entity.Entity entityIn)
     
    void
    readAdditionalSaveData(net.minecraft.nbt.CompoundTag compound)
     
    void
    readSpawnData(net.minecraft.network.RegistryFriendlyByteBuf additionalData)
     
    void
    setBox(net.minecraft.world.item.ItemStack box)
     
    void
    setItemSlot(net.minecraft.world.entity.EquipmentSlot pSlot, net.minecraft.world.item.ItemStack pStack)
     
    void
     
    void
    travel(net.minecraft.world.phys.Vec3 p_213352_1_)
     
    protected void
     
    void
    writeSpawnData(net.minecraft.network.RegistryFriendlyByteBuf buffer)
     

    Methods inherited from class net.minecraft.world.entity.LivingEntity

    activeLocationDependentEnchantments, actuallyHurt, addEffect, addEffect, aiStep, animateHurt, areAllEffectsAmbient, attackable, baseTick, blockedByShield, blockUsingShield, brainProvider, calculateEntityAnimation, calculateFallDamage, canAttack, canAttack, canAttackType, canBeAffected, canBeSeenAsEnemy, canBeSeenByAnyone, canBreatheUnderwater, canDisableShield, canFreeze, canStandOnFluid, canTakeItem, canUsePortal, canUseSlot, causeFallDamage, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, decreaseAirSupply, defineSynchedData, die, doAutoAttackOnTouch, doesEmitEquipEvent, doHurtEquipment, doHurtTarget, doPush, dropCustomDeathLoot, dropEquipment, dropExperience, dropFromLootTable, eat, eat, equipmentHasChanged, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getAgeScale, getAllSlots, getArmorAndBodyArmorSlots, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBaseExperienceReward, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, getBrain, getCombatTracker, getComfortableFallDistance, getCurrentSwingDuration, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDefaultGravity, getDimensions, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getEquipmentSlotForItem, getExperienceReward, getFallFlyingTicks, getFluidFallingAdjustedMovement, getFlyingSpeed, getHandSlots, getHealth, getHitbox, getHurtDir, getItemInHand, getJumpBoostPower, getJumpPower, getJumpPower, getKillCredit, getKnockback, getLastAttacker, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getLootTable, getLootTableSeed, getMainHandItem, getMaxAbsorption, getMaxFallDistance, getMaxHeadRotationRelativeToBody, getMaxHealth, getNoActionTime, getOffhandItem, getPreciseBodyRotation, getProjectile, getRelativePortalPosition, getRiddenInput, getRiddenSpeed, getScale, getSleepingPos, getSlot, getSlotForHand, getSoundVolume, getSpeed, getStingerCount, getSwimAmount, getTicksUsingItem, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVisualRotationYInDegrees, getWaterSlowDown, getWeaponItem, getYHeadRot, goDownInWater, handleDamageEvent, handleEntityEvent, handleRelativeFrictionAndCalculateMovement, hasEffect, hasInfiniteMaterials, hasItemInSlot, hasLandedInLiquid, hasLineOfSight, heal, hurtArmor, hurtCurrentlyUsedShield, hurtHelmet, igniteForTicks, increaseAirSupply, indicateDamage, internalSetAbsorptionAmount, isAffectedByFluids, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBaby, isBlocking, isCurrentlyGlowing, isDamageSourceBlocked, isDeadOrDying, isFallFlying, isHolding, isHolding, isImmobile, isInvertedHealAndHarm, isInvulnerableTo, isInWall, isPickable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, jumpInLiquid, kill, knockback, lerpHeadRotationStep, lerpHeadTo, lerpTargetX, lerpTargetXRot, lerpTargetY, lerpTargetYRot, lerpTargetZ, lerpTo, lookAt, makeBrain, makeSound, maxUpStep, onBelowWorld, onChangedBlock, onClimbable, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onEquipItem, onEquippedItemBroken, onItemPickup, onLeaveCombat, onSyncedDataUpdated, playBlockFallSound, playHurtSound, pushEntities, randomTeleport, recreateFromPacket, releaseUsingItem, remove, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeEffectsCuredBy, removeFrost, resetForwardDirectionOfRelativePortalPosition, rideTick, sanitizeScale, sendEffectToPassengers, serverAiStep, setAbsorptionAmount, setArrowCount, setDiscardFriction, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setRecordPlayingNearby, setSleepingPos, setSpeed, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDiscardFriction, shouldDropExperience, shouldDropLoot, shouldRiderFaceForward, shouldShowName, skipDropExperience, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, tickHeadTurn, tickRidden, triggerItemUseEffects, triggerOnDeathMobEffects, tryAddFrost, updateEffectVisibility, updateInvisibilityStatus, updateSwingTime, updateUsingItem, updateWalkAnimation, verifyEquippedItem, wasExperienceConsumed, wouldNotSuffocateAtTargetPose

    Methods inherited from class net.minecraft.world.entity.Entity

    absMoveTo, absMoveTo, absRotateTo, acceptsFailure, acceptsSuccess, addDeltaMovement, addPassenger, addTag, adjustSpawnLocation, applyGravity, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeHitByProjectile, canChangeDimensions, canControlVehicle, canRide, canSpawnSprintParticle, canSprint, canTrample, captureDrops, captureDrops, changeDimension, checkBelowWorld, checkDespawn, checkInsideBlocks, checkSlowFallDistance, checkSupportingBlock, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, copyPosition, couldAcceptPassenger, countPlayerPassengers, createCommandSourceStack, createHoverEvent, damageSources, dampensVibrations, deflection, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doWaterSplashEffect, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, fixupDimensions, fudgePositionAfterSizeChange, gameEvent, gameEvent, getAddEntityPacket, getAirSupply, getAttachments, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getCapability, getCapability, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControlledVehicle, getControllingPassenger, getCustomName, getDefaultPassengerAttachmentPoint, getDeltaMovement, getDimensionChangingDelay, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getEyeHeight, getEyeHeight, getEyeInFluidType, getEyePosition, getEyePosition, getEyeY, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getFluidTypeHeight, getForward, getGravity, getHandHoldingItemAngle, getId, getInBlockState, getIndirectPassengers, getKnownMovement, getLeashOffset, getLeashOffset, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxHeightFluidType, getMotionDirection, getMovementEmission, getName, getNearestViewDirection, getOnPos, getOnPos, getOnPosLegacy, getPassengers, getPassengersAndSelf, getPercentFrozen, getPermissionLevel, getPersistentData, getPickRadius, getPickResult, getPistonPushReaction, getPortalCooldown, getPose, getPosition, getPositionCodec, getPrimaryStepSoundBlockPos, getRandom, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRemovalReason, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getTicksFrozen, getTicksRequiredToFreeze, getType, getTypeName, getUpVector, getUUID, getVehicle, getVehicleAttachmentPoint, getViewScale, getViewVector, getViewXRot, getX, getX, getXRot, getY, getY, getYRot, getZ, getZ, handlePortal, hasControllingPassenger, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPermissions, hasPose, igniteForSeconds, ignoreExplosion, interactAt, is, isAddedToLevel, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isColliding, isControlledByLocalInstance, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEffectiveAi, isEyeInFluid, isFlapping, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, isInFluidType, isInFluidType, isInLava, isInLiquid, isInvisible, isInvisibleTo, isInvulnerable, 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, lerpPositionAndRotationStep, level, limitPistonMovement, load, makeBoundingBox, makeStuckInBlock, markHurt, maybeBackOffFromEdge, mayInteract, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToLevel, onClientRemoval, onExplosionHit, onFlap, onGround, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromLevel, onSyncedDataUpdated, pick, placePortalTicket, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playerTouch, playMuffledStepSound, playSound, playSound, playStepSound, playSwimSound, position, positionRider, positionRider, processFlappingMovement, processPortalCooldown, push, push, reapplyPosition, refreshDimensions, registryAccess, removeAfterChangingDimensions, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendSystemMessage, setAirSupply, setAsInsidePortal, setBoundingBox, setCustomName, setCustomNameVisible, setData, setDeltaMovement, setDeltaMovement, setFluidTypeHeight, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevel, setLevelCallback, setNoGravity, setOldPosAndRot, setOnGround, setOnGroundWithMovement, setPortalCooldown, setPortalCooldown, setPos, setPos, setPose, setPosRaw, setRemainingFireTicks, setRemoved, setRot, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSwimming, setTicksFrozen, setUUID, setViewScale, setXRot, setYRot, shouldBeSaved, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startRiding, startSeenByPlayer, stopSeenByPlayer, syncData, syncPacketPositionCodec, teleportRelative, teleportTo, teleportTo, thunderHit, toString, touchingUnloadedChunk, trackingPosition, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming, waterSwimSound

    Methods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, removeData, serializeAttachments

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraft.commands.CommandSource

    alwaysAccepts

    Methods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder

    getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData, syncData

    Methods inherited from interface net.neoforged.neoforge.common.extensions.IEntityExtension

    canBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canStartSwimming, canTrample, captureDrops, captureDrops, copyAttachmentsFrom, deserializeNBT, getClassification, getEyeInFluidType, getFluidFallDistanceModifier, getFluidMotionScale, getFluidTypeHeight, getMaxHeightFluidType, getParts, getPersistentData, getSoundFromFluidType, hasCustomOutlineRendering, isAddedToLevel, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, onAddedToLevel, onRemovedFromLevel, revive, sendPairingData, serializeNBT, shouldRiderSit

    Methods inherited from interface net.neoforged.neoforge.common.extensions.ILivingEntityExtension

    canDrownInFluidType, canSwimInFluidType, jumpInFluid, moveInFluid, onDamageTaken, self, sinkInFluid

    Methods inherited from interface net.minecraft.world.scores.ScoreHolder

    getFeedbackDisplayName
  • Field Details

    • box

      public net.minecraft.world.item.ItemStack box
    • insertionDelay

      public int insertionDelay
    • clientPosition

      public net.minecraft.world.phys.Vec3 clientPosition
    • vec2

      public net.minecraft.world.phys.Vec3 vec2
    • vec3

      public net.minecraft.world.phys.Vec3 vec3
    • tossedBy

      public WeakReference<net.minecraft.world.entity.player.Player> tossedBy
  • Constructor Details

    • PackageEntity

      public PackageEntity(net.minecraft.world.entity.EntityType<?> entityTypeIn, net.minecraft.world.level.Level worldIn)
    • PackageEntity

      public PackageEntity(net.minecraft.world.level.Level worldIn, double x, double y, double z)
  • Method Details

    • fromDroppedItem

      public static PackageEntity fromDroppedItem(net.minecraft.world.level.Level world, net.minecraft.world.entity.Entity originalEntity, net.minecraft.world.item.ItemStack itemstack)
    • fromItemStack

      public static PackageEntity fromItemStack(net.minecraft.world.level.Level world, net.minecraft.world.phys.Vec3 position, net.minecraft.world.item.ItemStack itemstack)
    • getPickedResult

      public net.minecraft.world.item.ItemStack getPickedResult(net.minecraft.world.phys.HitResult target)
      Specified by:
      getPickedResult in interface net.neoforged.neoforge.common.extensions.IEntityExtension
    • createPackageAttributes

      public static net.minecraft.world.entity.ai.attributes.AttributeSupplier.Builder createPackageAttributes()
    • build

      public static net.minecraft.world.entity.EntityType.Builder<?> build(net.minecraft.world.entity.EntityType.Builder<?> builder)
    • travel

      public void travel(net.minecraft.world.phys.Vec3 p_213352_1_)
      Overrides:
      travel in class net.minecraft.world.entity.LivingEntity
    • lerpMotion

      public void lerpMotion(double x, double y, double z)
      Overrides:
      lerpMotion in class net.minecraft.world.entity.Entity
    • getAddress

      public String getAddress()
    • tick

      public void tick()
      Overrides:
      tick in class net.minecraft.world.entity.LivingEntity
    • verifyInitialEntity

      protected void verifyInitialEntity()
    • getDefaultDimensions

      protected net.minecraft.world.entity.EntityDimensions getDefaultDimensions(net.minecraft.world.entity.Pose pose)
      Overrides:
      getDefaultDimensions in class net.minecraft.world.entity.LivingEntity
    • getBox

      public net.minecraft.world.item.ItemStack getBox()
    • centerPackage

      public static boolean centerPackage(net.minecraft.world.entity.Entity entity, net.minecraft.world.phys.Vec3 target)
    • decreaseInsertionTimer

      public boolean decreaseInsertionTimer(@Nullable @Nullable net.minecraft.world.phys.Vec3 targetSpot)
    • setBox

      public void setBox(net.minecraft.world.item.ItemStack box)
    • isPushable

      public boolean isPushable()
      Overrides:
      isPushable in class net.minecraft.world.entity.LivingEntity
    • canCollideWith

      public boolean canCollideWith(net.minecraft.world.entity.Entity pEntity)
      Overrides:
      canCollideWith in class net.minecraft.world.entity.Entity
    • canBeCollidedWith

      public boolean canBeCollidedWith()
      Overrides:
      canBeCollidedWith in class net.minecraft.world.entity.Entity
    • interact

      public net.minecraft.world.InteractionResult interact(net.minecraft.world.entity.player.Player pPlayer, net.minecraft.world.InteractionHand pHand)
      Overrides:
      interact in class net.minecraft.world.entity.Entity
    • push

      public void push(net.minecraft.world.entity.Entity entityIn)
      Overrides:
      push in class net.minecraft.world.entity.LivingEntity
    • getPassengerRidingPosition

      public net.minecraft.world.phys.Vec3 getPassengerRidingPosition(net.minecraft.world.entity.Entity entity)
      Overrides:
      getPassengerRidingPosition in class net.minecraft.world.entity.LivingEntity
    • getPassengerAttachmentPoint

      protected net.minecraft.world.phys.Vec3 getPassengerAttachmentPoint(net.minecraft.world.entity.Entity entity, net.minecraft.world.entity.EntityDimensions dimensions, float partialTick)
      Overrides:
      getPassengerAttachmentPoint in class net.minecraft.world.entity.Entity
    • onInsideBlock

      protected void onInsideBlock(net.minecraft.world.level.block.state.BlockState state)
      Overrides:
      onInsideBlock in class net.minecraft.world.entity.Entity
    • hurt

      public boolean hurt(net.minecraft.world.damagesource.DamageSource source, float amount)
      Overrides:
      hurt in class net.minecraft.world.entity.LivingEntity
    • dropAllDeathLoot

      protected void dropAllDeathLoot(net.minecraft.server.level.ServerLevel level, net.minecraft.world.damagesource.DamageSource pDamageSource)
      Overrides:
      dropAllDeathLoot in class net.minecraft.world.entity.LivingEntity
    • readAdditionalSaveData

      public void readAdditionalSaveData(net.minecraft.nbt.CompoundTag compound)
      Overrides:
      readAdditionalSaveData in class net.minecraft.world.entity.LivingEntity
    • addAdditionalSaveData

      public void addAdditionalSaveData(net.minecraft.nbt.CompoundTag compound)
      Overrides:
      addAdditionalSaveData in class net.minecraft.world.entity.LivingEntity
    • getArmorSlots

      public Iterable<net.minecraft.world.item.ItemStack> getArmorSlots()
      Specified by:
      getArmorSlots in class net.minecraft.world.entity.LivingEntity
    • getItemBySlot

      public net.minecraft.world.item.ItemStack getItemBySlot(net.minecraft.world.entity.EquipmentSlot pSlot)
      Specified by:
      getItemBySlot in class net.minecraft.world.entity.LivingEntity
    • setItemSlot

      public void setItemSlot(net.minecraft.world.entity.EquipmentSlot pSlot, net.minecraft.world.item.ItemStack pStack)
      Specified by:
      setItemSlot in class net.minecraft.world.entity.LivingEntity
    • getMainArm

      public net.minecraft.world.entity.HumanoidArm getMainArm()
      Specified by:
      getMainArm in class net.minecraft.world.entity.LivingEntity
    • getUsedItemHand

      public net.minecraft.world.InteractionHand getUsedItemHand()
      Overrides:
      getUsedItemHand in class net.minecraft.world.entity.LivingEntity
    • writeSpawnData

      public void writeSpawnData(net.minecraft.network.RegistryFriendlyByteBuf buffer)
      Specified by:
      writeSpawnData in interface net.neoforged.neoforge.entity.IEntityWithComplexSpawn
    • readSpawnData

      public void readSpawnData(net.minecraft.network.RegistryFriendlyByteBuf additionalData)
      Specified by:
      readSpawnData in interface net.neoforged.neoforge.entity.IEntityWithComplexSpawn
    • getVoicePitch

      public float getVoicePitch()
      Overrides:
      getVoicePitch in class net.minecraft.world.entity.LivingEntity
    • getFallSounds

      public net.minecraft.world.entity.LivingEntity.Fallsounds getFallSounds()
      Overrides:
      getFallSounds in class net.minecraft.world.entity.LivingEntity
    • getHurtSound

      @Nullable protected @Nullable net.minecraft.sounds.SoundEvent getHurtSound(net.minecraft.world.damagesource.DamageSource damageSourceIn)
      Overrides:
      getHurtSound in class net.minecraft.world.entity.LivingEntity
    • getDeathSound

      @Nullable protected @Nullable net.minecraft.sounds.SoundEvent getDeathSound()
      Overrides:
      getDeathSound in class net.minecraft.world.entity.LivingEntity
    • isAffectedByPotions

      public boolean isAffectedByPotions()
      Overrides:
      isAffectedByPotions in class net.minecraft.world.entity.LivingEntity
    • fireImmune

      public boolean fireImmune()
      Overrides:
      fireImmune in class net.minecraft.world.entity.Entity