Package de.ellpeck.rockbottom.api.entity
Class AbstractItemEntity
java.lang.Object
de.ellpeck.rockbottom.api.entity.MovableWorldObject
de.ellpeck.rockbottom.api.entity.Entity
de.ellpeck.rockbottom.api.entity.AbstractItemEntity
- All Implemented Interfaces:
IAdditionalDataProvider
-
Nested Class Summary
Nested classes/interfaces inherited from class de.ellpeck.rockbottom.api.entity.Entity
Entity.IFactory -
Field Summary
Fields inherited from class de.ellpeck.rockbottom.api.entity.Entity
canBreathe, canClimb, canSwim, chunkX, chunkY, currentAiTask, dead, facing, fallStartY, interpolationX, interpolationY, isClimbing, isDropping, isFalling, isFlying, lastSyncX, lastSyncY, submergedLiquid, ticksExistedFields inherited from class de.ellpeck.rockbottom.api.entity.MovableWorldObject
collidedHor, collidedVert, currentBounds, lastTickX, lastTickY, motionX, motionY, onGround, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanabstract ItemInstancegetItem()abstract voidsetItem(ItemInstance instance) static AbstractItemEntityspawn(IWorld world, ItemInstance inst, double x, double y, double motionX, double motionY) Methods inherited from class de.ellpeck.rockbottom.api.entity.Entity
addAiTask, addEffect, applyKnockback, applyMotion, canCollideWith, doesInterpolate, doesSave, doesSync, getActiveEffects, getAdditionalData, getDespawnHandler, getEffectModifier, getEyeHeight, getHeight, getInteractionPriority, getMaxInteractionDistance, getOrCreateAdditionalData, getRegistryName, getRenderer, getRenderPriority, getSyncFrequency, getTask, getTaskId, getUniqueId, getWidth, hasAdditionalData, hasEffect, isDead, load, moveToChunk, moveToWorld, onAttack, onCollideWithEntity, onCollideWithTile, onEntityCollision, onEntityIntersection, onGroundHit, onInteractWith, onInteractWithBreakKey, onIntersectWithEntity, onIntersectWithTile, onPositionReset, onRemoveFromWorld, onTileCollision, onTileIntersection, removeEffect, save, sendToClients, setAdditionalData, setDead, setReadyToRemove, setUniqueId, shouldBeFalling, shouldBeRemoved, shouldMakeChunkPersist, shouldRender, shouldStartClimbing, updateMethods inherited from class de.ellpeck.rockbottom.api.entity.MovableWorldObject
canCollideWithTile, getLerpedX, getLerpedY, getOriginX, getOriginY, getX, getY, move, resetBounds, setBounds, setBoundsOrigin, setPos
-
Constructor Details
-
AbstractItemEntity
-
-
Method Details
-
spawn
public static AbstractItemEntity spawn(IWorld world, ItemInstance inst, double x, double y, double motionX, double motionY) -
getItem
-
setItem
-
canPickUp
public abstract boolean canPickUp()
-