Class MovingBlockEntity
java.lang.Object
org.cloudburstmc.server.blockentity.BaseBlockEntity
org.cloudburstmc.server.blockentity.MovingBlockEntity
- All Implemented Interfaces:
org.cloudburstmc.api.blockentity.BlockEntity,org.cloudburstmc.api.blockentity.MovingBlock
public class MovingBlockEntity
extends BaseBlockEntity
implements org.cloudburstmc.api.blockentity.MovingBlock
Created by CreeperFace on 11.4.2017.
-
Field Summary
Fields inherited from class org.cloudburstmc.server.blockentity.BaseBlockEntity
closed, id, ID_ALLOCATOR, lastUpdate, movable, server, timing -
Constructor Summary
ConstructorsConstructorDescriptionMovingBlockEntity(org.cloudburstmc.api.blockentity.BlockEntityType<?> type, org.cloudburstmc.api.level.chunk.Chunk chunk, com.nukkitx.math.vector.Vector3i position) -
Method Summary
Modifier and TypeMethodDescriptionorg.cloudburstmc.api.blockentity.BlockEntityorg.cloudburstmc.api.block.BlockStateorg.cloudburstmc.api.block.BlockStatecom.nukkitx.math.vector.Vector3ibooleanbooleanisValid()voidloadAdditionalData(com.nukkitx.nbt.NbtMap tag)voidsaveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)voidsetBlock(org.cloudburstmc.api.block.BlockState blockState)voidsetBlockEntity(org.cloudburstmc.api.blockentity.BlockEntity blockEntity)voidsetExtraBlock(org.cloudburstmc.api.block.BlockState extraBlockState)voidsetPiston(com.nukkitx.math.vector.Vector3i piston)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, saveClientData, scheduleUpdate, setCustomName, setDirty, 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, setDirty, setMovable, spawnTo, spawnToAll
-
Constructor Details
-
MovingBlockEntity
public MovingBlockEntity(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
-
saveAdditionalData
public void saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)- Overrides:
saveAdditionalDatain classBaseBlockEntity
-
getMovingBlock
public org.cloudburstmc.api.block.BlockState getMovingBlock() -
setBlock
public void setBlock(org.cloudburstmc.api.block.BlockState blockState) -
getExtraBlock
public org.cloudburstmc.api.block.BlockState getExtraBlock() -
setExtraBlock
public void setExtraBlock(org.cloudburstmc.api.block.BlockState extraBlockState) -
getBlockEntity
public org.cloudburstmc.api.blockentity.BlockEntity getBlockEntity() -
setBlockEntity
public void setBlockEntity(org.cloudburstmc.api.blockentity.BlockEntity blockEntity) -
getPiston
public com.nukkitx.math.vector.Vector3i getPiston() -
setPiston
public void setPiston(com.nukkitx.math.vector.Vector3i piston) -
isValid
public boolean isValid()- Specified by:
isValidin interfaceorg.cloudburstmc.api.blockentity.BlockEntity- Specified by:
isValidin classBaseBlockEntity
-
isSpawnable
public boolean isSpawnable()- Specified by:
isSpawnablein interfaceorg.cloudburstmc.api.blockentity.BlockEntity- Overrides:
isSpawnablein classBaseBlockEntity
-