public abstract class BlockEntityAPI<E,T> extends AbstractWrapped<T> implements RegistryEntryAPI<T>
| Modifier and Type | Field and Description |
|---|---|
protected BlockBuilderAPI.BlockEntityCreator |
creator |
protected E |
entity |
protected ResourceLocationAPI<?> |
registryName |
wrappedFORGE, FORGE_OR_NEOFORGE, NAMED_ENV, SRG_ENV| Modifier | Constructor and Description |
|---|---|
protected |
BlockEntityAPI(E entity,
T type) |
| Modifier and Type | Method and Description |
|---|---|
BlockEntityAPI<?,?> |
createFromReference(WorldAPI<?> world,
BlockPosAPI<?> pos,
BlockStateAPI<?> state) |
boolean |
equals(java.lang.Object other) |
abstract BlockPosAPI<?> |
getPos() |
ResourceLocationAPI<?> |
getRegistryName() |
BlockStateAPI<?> |
getState() |
abstract WorldAPI<?> |
getWorld() |
abstract CompoundTagAPI<?> |
readTagFrom() |
protected void |
setLocalRegistryName(ResourceLocationAPI<?> registryName) |
abstract void |
writeTagTo(CompoundTagAPI<?> tag) |
getWrapped, getWrappedClass, toStringclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetName, getName, getRegistry, getRegistryName, setRegistryNamegetWrapped, getWrappedClass, unwrapprotected final E entity
protected ResourceLocationAPI<?> registryName
protected BlockBuilderAPI.BlockEntityCreator creator
public BlockEntityAPI<?,?> createFromReference(WorldAPI<?> world, BlockPosAPI<?> pos, BlockStateAPI<?> state)
public boolean equals(java.lang.Object other)
equals in class AbstractWrapped<T>public abstract BlockPosAPI<?> getPos()
public ResourceLocationAPI<?> getRegistryName()
getRegistryName in interface RegistryEntryAPI<T>public BlockStateAPI<?> getState()
public abstract WorldAPI<?> getWorld()
public abstract CompoundTagAPI<?> readTagFrom()
protected void setLocalRegistryName(ResourceLocationAPI<?> registryName)
public abstract void writeTagTo(CompoundTagAPI<?> tag)