public class ItemEntity extends Entity
Entity.IMoveCallback
Modifier and Type | Field and Description |
---|---|
private int |
age |
private int |
health |
float |
hoverStart |
private static DataParameter<ItemStack> |
ITEM |
int |
lifespan
The maximum age of this EntityItem.
|
private java.util.UUID |
owner |
private int |
pickupDelay |
private java.util.UUID |
thrower |
addedToChunk, cachedUniqueIdString, chunkCoordX, chunkCoordY, chunkCoordZ, collided, collidedHorizontally, collidedVertically, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, eyesInWater, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, hurtResistantTime, ignoreFrustumCheck, inLava, inPortal, inWater, isAirBorne, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, LOGGER, motionMultiplier, noClip, onGround, portalCounter, POSE, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, removed, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, submergedHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, world
DUMMY
Constructor and Description |
---|
ItemEntity(EntityType<? extends ItemEntity> p_i50217_1_,
World p_i50217_2_) |
ItemEntity(World worldIn,
double x,
double y,
double z) |
ItemEntity(World worldIn,
double x,
double y,
double z,
ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
private void |
applyFloatMotion() |
boolean |
attackEntityFrom(DamageSource source,
float amount) |
boolean |
canBeAttackedWithItem() |
boolean |
cannotPickup() |
protected boolean |
canTriggerWalking() |
Entity |
changeDimension(DimensionType destination,
ITeleporter teleporter) |
IPacket<?> |
createSpawnPacket() |
protected void |
dealFireDamage(int amount) |
private boolean |
func_213857_z() |
private static void |
func_213858_a(ItemEntity p_213858_0_,
ItemStack p_213858_1_,
ItemEntity p_213858_2_,
ItemStack p_213858_3_) |
private void |
func_226530_a_(ItemEntity p_226530_1_) |
private static void |
func_226531_a_(ItemEntity p_226531_0_,
ItemStack p_226531_1_,
ItemStack p_226531_2_) |
static boolean |
func_226532_a_(ItemStack p_226532_0_,
ItemStack p_226532_1_) |
static ItemStack |
func_226533_a_(ItemStack p_226533_0_,
ItemStack p_226533_1_,
int p_226533_2_) |
int |
getAge() |
ItemStack |
getItem() |
ITextComponent |
getName() |
java.util.UUID |
getOwnerId() |
java.util.UUID |
getThrowerId() |
void |
makeFakeItem() |
void |
onCollideWithPlayer(PlayerEntity entityIn) |
void |
readAdditional(CompoundNBT compound) |
protected void |
registerData() |
private void |
searchForOtherItemsNearby() |
void |
setDefaultPickupDelay() |
void |
setInfinitePickupDelay() |
void |
setItem(ItemStack stack) |
void |
setNoDespawn() |
void |
setNoPickupDelay() |
void |
setOwnerId(java.util.UUID p_200217_1_) |
void |
setPickupDelay(int ticks) |
void |
setThrowerId(java.util.UUID p_200216_1_) |
void |
tick() |
void |
writeAdditional(CompoundNBT compound) |
addPassenger, addTag, addTrackingPlayer, addVelocity, allowLogging, applyEnchantments, applyEntityCollision, applyOrientationToEntity, applyPlayerInteraction, areEyesInFluid, areEyesInFluid, awardKillScore, baseTick, calculateUpVector, canBeCollidedWith, canBePushed, canBeRidden, canBeRiddenInWater, canExplosionDestroyBlock, canFitPassenger, canPassengerSteer, canRenderOnFire, canSwim, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, checkDespawn, collideBoundingBox, collideBoundingBoxHeuristically, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, decrementTimeUntilPortal, detach, determineNextStepDistance, doBlockCollisions, doesEntityNotTriggerPressurePlate, doWaterSplashEffect, entityDropItem, entityDropItem, entityDropItem, entityDropItem, equals, extinguish, fillCrashReport, forceSetPosition, getAdjustedHorizontalFacing, getAir, getAllowedMovement, getAlwaysRenderNameTagForRender, getArmorInventoryList, getBoundingBox, getBoundingBox, getBrightness, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSource, getControllingPassenger, getCustomName, getDataManager, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getEyeHeight, getEyeHeight, getEyePosition, getFireImmuneTicks, getFireTimer, getFlag, getForward, getHeight, getHeldEquipment, getHighspeedSplashSound, getHorizontalFacing, getHoverEvent, getJumpFactor, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxAir, getMaxFallHeight, getMaxInPortalTime, getMirroredYaw, getMotion, getMountedYOffset, getOnPosition, getPassengers, getPermissionLevel, getPersistentData, getPitch, getPitchYaw, getPortalCooldown, getPose, getPosition, getPositionUnderneath, getPositionVec, getPositionVector, getPosX, getPosXRandom, getPosXWidth, getPosY, getPosYEye, getPosYHeight, getPosYRandom, getPosZ, getPosZRandom, getPosZWidth, getProfessionName, getPushReaction, getRecursivePassengers, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getRotationYawHead, getScoreboardName, getSelfAndPassengers, getServer, getSize, getSoundCategory, getSpeedFactor, getSplashSound, getSubmergedHeight, getSwimSound, getTags, getTeam, getTeamColor, getTeleportDirection, getType, getUniqueID, getUpVector, getVectorForRotation, getWidth, getYaw, getYOffset, handleFluidAcceleration, handlePistonMovement, handleStatusUpdate, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hasPermissionLevel, hitByEntity, horizontalMag, ignoreItemEntityData, isActualySwimming, isAddedToWorld, isAlive, isBeingRidden, isBurning, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEntityEqual, isEntityInsideOpaqueBlock, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInvisible, isInvisibleToPlayer, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubbleColumn, isInWaterRainOrBubbleColumn, isLiving, isNonBoss, isOffsetPositionInLiquid, isOnePlayerRiding, isOnSameTeam, isOnScoreboardTeam, isPassenger, isPassenger, isPassenger, isPoseClear, isPushedByWater, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSpectatedByPlayer, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isVisuallySwimming, isWet, lookAt, makeFlySound, markVelocityChanged, maybeBackOffFromEdge, move, moveForced, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, notifyDataManagerChange, onAddedToWorld, onEnterBubbleColumn, onEnterBubbleColumnWithAirAbove, onInsideBlock, onKillCommand, onKillEntity, onLivingFall, onRemovedFromWorld, onStruckByLightning, outOfWorld, performHurtAnimation, pick, playFlySound, playSound, playStepSound, playSwimSound, positionRider, preparePlayerToSpawn, processInitialInteract, pushOutOfBlocks, read, recalculateSize, recenterBoundingBox, remove, remove, removePassenger, removePassengers, removeTag, removeTrackingPlayer, replaceItemInInventory, repositionDirectPassengers, resetPositionToBB, revive, rotateTowards, sendMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFire, setFireTimer, setFlag, setGlowing, setHeadRotation, setInLava, setInvisible, setInvulnerable, setItemStackToSlot, setLocationAndAngles, setMotion, setMotion, setMotionMultiplier, setNoGravity, setOnFireFromLava, setPacketCoordinates, setPortal, setPose, setPosition, setPositionAndRotation, setPositionAndRotationDirect, setPositionAndUpdate, setPositionNonDirty, setRawPosition, setRenderDistanceWeight, setRenderYawOffset, setRotation, setRotationYawHead, setSilent, setSneaking, setSprinting, setSwimming, setUniqueId, setVelocity, setWorld, shouldReceiveErrors, shouldReceiveFeedback, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, startRiding, stopRiding, teleportKeepLoaded, toString, updateFallState, updatePassenger, updatePortal, updateRidden, updateSwimming, writeUnlessPassenger, writeUnlessRemoved, writeWithoutTypeId
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getEntity, getPickedResult, serializeNBT, shouldRiderSit
getCapability, getCapability
private static final DataParameter<ItemStack> ITEM
private int age
private int pickupDelay
private int health
private java.util.UUID thrower
private java.util.UUID owner
public int lifespan
public final float hoverStart
public ItemEntity(EntityType<? extends ItemEntity> p_i50217_1_, World p_i50217_2_)
public ItemEntity(World worldIn, double x, double y, double z)
protected boolean canTriggerWalking()
canTriggerWalking
in class Entity
protected void registerData()
registerData
in class Entity
private void applyFloatMotion()
private void searchForOtherItemsNearby()
private boolean func_213857_z()
private void func_226530_a_(ItemEntity p_226530_1_)
public static ItemStack func_226533_a_(ItemStack p_226533_0_, ItemStack p_226533_1_, int p_226533_2_)
private static void func_226531_a_(ItemEntity p_226531_0_, ItemStack p_226531_1_, ItemStack p_226531_2_)
private static void func_213858_a(ItemEntity p_213858_0_, ItemStack p_213858_1_, ItemEntity p_213858_2_, ItemStack p_213858_3_)
protected void dealFireDamage(int amount)
dealFireDamage
in class Entity
public boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom
in class Entity
public void writeAdditional(CompoundNBT compound)
writeAdditional
in class Entity
public void readAdditional(CompoundNBT compound)
readAdditional
in class Entity
public void onCollideWithPlayer(PlayerEntity entityIn)
onCollideWithPlayer
in class Entity
public ITextComponent getName()
public boolean canBeAttackedWithItem()
canBeAttackedWithItem
in class Entity
@Nullable public Entity changeDimension(DimensionType destination, ITeleporter teleporter)
changeDimension
in class Entity
public ItemStack getItem()
public void setItem(ItemStack stack)
@Nullable public java.util.UUID getOwnerId()
public void setOwnerId(@Nullable java.util.UUID p_200217_1_)
@Nullable public java.util.UUID getThrowerId()
public void setThrowerId(@Nullable java.util.UUID p_200216_1_)
public int getAge()
public void setDefaultPickupDelay()
public void setNoPickupDelay()
public void setInfinitePickupDelay()
public void setPickupDelay(int ticks)
public boolean cannotPickup()
public void setNoDespawn()
public void makeFakeItem()
public IPacket<?> createSpawnPacket()
createSpawnPacket
in class Entity