Class ItemFrameBlockEntity
java.lang.Object
org.cloudburstmc.server.blockentity.BaseBlockEntity
org.cloudburstmc.server.blockentity.ItemFrameBlockEntity
- All Implemented Interfaces:
org.cloudburstmc.api.blockentity.BlockEntity,org.cloudburstmc.api.blockentity.ItemFrame
public class ItemFrameBlockEntity
extends BaseBlockEntity
implements org.cloudburstmc.api.blockentity.ItemFrame
Created by Pub4Game on 03.07.2016.
-
Field Summary
Fields inherited from class org.cloudburstmc.server.blockentity.BaseBlockEntity
closed, id, ID_ALLOCATOR, lastUpdate, movable, server, timing -
Constructor Summary
ConstructorsConstructorDescriptionItemFrameBlockEntity(org.cloudburstmc.api.blockentity.BlockEntityType<?> type, org.cloudburstmc.api.level.chunk.Chunk chunk, com.nukkitx.math.vector.Vector3i position) -
Method Summary
Modifier and TypeMethodDescriptionintorg.cloudburstmc.api.item.ItemStackgetItem()floatintbooleanbooleanisValid()voidloadAdditionalData(com.nukkitx.nbt.NbtMap tag)protected voidsaveClientData(com.nukkitx.nbt.NbtMapBuilder tag)NBT data that is specifically sent to the clientvoidsetDirty()voidsetItem(org.cloudburstmc.api.item.ItemStack item)voidsetItemDropChance(float itemDropChance)voidsetItemRotation(int itemRotation)Methods inherited from class org.cloudburstmc.server.blockentity.BaseBlockEntity
close, getBlock, getBlockState, getChunk, getChunkTag, getClientTag, getCustomName, getId, getItemTag, getLevel, getPosition, getServer, getServerTag, getTag, getType, hasCustomName, init, isClosed, isMovable, onBreak, onUpdate, saveAdditionalData, scheduleUpdate, setCustomName, setMovable, spawnTo, spawnToAll, updateFromClient, updateNbtMapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cloudburstmc.api.blockentity.BlockEntity
close, getBlock, getBlockState, getCustomName, getLevel, getPosition, getType, hasCustomName, isClosed, isMovable, onBreak, onUpdate, scheduleUpdate, setCustomName, setMovable, spawnTo, spawnToAll
-
Constructor Details
-
ItemFrameBlockEntity
public ItemFrameBlockEntity(org.cloudburstmc.api.blockentity.BlockEntityType<?> type, org.cloudburstmc.api.level.chunk.Chunk chunk, com.nukkitx.math.vector.Vector3i position)
-
-
Method Details
-
loadAdditionalData
public void loadAdditionalData(com.nukkitx.nbt.NbtMap tag)- Overrides:
loadAdditionalDatain classBaseBlockEntity
-
saveClientData
protected void saveClientData(com.nukkitx.nbt.NbtMapBuilder tag)Description copied from class:BaseBlockEntityNBT data that is specifically sent to the client- Overrides:
saveClientDatain classBaseBlockEntity- Parameters:
tag- tag to write data to
-
isValid
public boolean isValid()- Specified by:
isValidin interfaceorg.cloudburstmc.api.blockentity.BlockEntity- Specified by:
isValidin classBaseBlockEntity
-
getItemRotation
public int getItemRotation()- Specified by:
getItemRotationin interfaceorg.cloudburstmc.api.blockentity.ItemFrame
-
setItemRotation
public void setItemRotation(int itemRotation)- Specified by:
setItemRotationin interfaceorg.cloudburstmc.api.blockentity.ItemFrame
-
getItem
public org.cloudburstmc.api.item.ItemStack getItem()- Specified by:
getItemin interfaceorg.cloudburstmc.api.blockentity.ItemFrame
-
setItem
public void setItem(org.cloudburstmc.api.item.ItemStack item)- Specified by:
setItemin interfaceorg.cloudburstmc.api.blockentity.ItemFrame
-
getItemDropChance
public float getItemDropChance()- Specified by:
getItemDropChancein interfaceorg.cloudburstmc.api.blockentity.ItemFrame
-
setItemDropChance
public void setItemDropChance(float itemDropChance)- Specified by:
setItemDropChancein interfaceorg.cloudburstmc.api.blockentity.ItemFrame
-
setDirty
public void setDirty()- Specified by:
setDirtyin interfaceorg.cloudburstmc.api.blockentity.BlockEntity- Overrides:
setDirtyin classBaseBlockEntity
-
getAnalogOutput
public int getAnalogOutput()- Specified by:
getAnalogOutputin interfaceorg.cloudburstmc.api.blockentity.ItemFrame
-
isSpawnable
public boolean isSpawnable()- Specified by:
isSpawnablein interfaceorg.cloudburstmc.api.blockentity.BlockEntity- Overrides:
isSpawnablein classBaseBlockEntity
-