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 |
wrappedBOOLEAN_VALUES, FABRIC, FORGE, FORGE_OR_NEOFORGE, GAME_VERSION, JAVA_17, JAVA_21, JAVA_8, JAVA_MODULES, JAVA_VERSION, JAVA_VERSION_ASM, LEGACY, MOD_LOADER, NAMED_ENV, NEOFORGE, SRG_ENV, V12, V16, V16_OR_EARLIER, V16_OR_LATER, V18, V18_OR_EARLIER, V18_OR_LATER, V19, V19_2_OR_EARLIER, V19_4_OR_LATER, V19_OR_EARLIER, V19_OR_LATER, V20, V20_4_OR_EARLIER, V20_6_OR_LATER, V20_OR_EARLIER, V20_OR_LATER, V21, V21_OR_LATER| Modifier | Constructor and Description |
|---|---|
protected |
BlockEntityAPI(@Nullable java.lang.Object entity,
java.lang.Object 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, setForgeRegistryName, setRegistryNamegetIfNotNull, getIfNotNullOrDefault, getIfNotNullOrDefault, getWrapped, getWrappedClass, isNull, isNullGetter, notNull, notNullGetter, supplyIfNull, unwrap, wrapIfNotNull, wrapIfNotNullOrDefault, wrapIfNotNullOrDefaultprotected final E entity
protected ResourceLocationAPI<?> registryName
protected BlockBuilderAPI.BlockEntityCreator creator
protected BlockEntityAPI(@Nullable
@Nullable java.lang.Object entity,
java.lang.Object type)
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)