public interface TileEntityArchetype extends Archetype<BlockSnapshot,TileEntity>
TileEntity which does not exist in the world
and may be used to create new TileEntitys with the same data.| Modifier and Type | Interface and Description |
|---|---|
static interface |
TileEntityArchetype.Builder
A builder for
TileEntityArchetypes. |
| Modifier and Type | Method and Description |
|---|---|
static TileEntityArchetype.Builder |
builder()
Creates a
TileEntityArchetype.Builder to get TileEntityArchetypes. |
TileEntityArchetype |
copy()
Creates a clone copy of this
ValueContainer as a new
ValueContainer such that all the BaseValues are
safely duplicated to the new instance. |
BlockState |
getState()
Gets the block state for this archetype.
|
DataContainer |
getTileData()
Gets the raw
TileEntity data that would be applied to the
generated tile entity. |
TileEntityType |
getTileEntityType()
Gets the
TileEntityType for this archetype. |
void |
setRawData(DataView container)
Sets the raw data for the desired
TileEntity. |
apply, toSnapshotvalidateRawDatagetContentVersion, toContainergetApplicableProperties, getPropertystatic TileEntityArchetype.Builder builder()
TileEntityArchetype.Builder to get TileEntityArchetypes.BlockState getState()
getTileEntityType() is. The underlying
data is mutable, but all the data is heavily tied to the tile entity
type.TileEntityType getTileEntityType()
TileEntityType for this archetype.DataContainer getTileData()
TileEntity data that would be applied to the
generated tile entity. Note that this is a copied container.void setRawData(DataView container) throws InvalidDataException
TileEntity. Note that position
values are not used as those are dependent on usage.setRawData in interface DataHoldercontainer - A container containing all raw data to set on this data
holderInvalidDataException - If the data is not valid for the archetyped
tile entityTileEntityArchetype copy()
ValueContainerValueContainer as a new
ValueContainer such that all the BaseValues are
safely duplicated to the new instance.copy in interface ValueContainer<DataHolder>