public interface TileEntityArchetype extends Archetype<BlockSnapshot,TileEntity>
TileEntity
which does not exist in the world
and may be used to create new TileEntity
s with the same data.Modifier and Type | Interface and Description |
---|---|
static interface |
TileEntityArchetype.Builder
A builder for
TileEntityArchetype s. |
Modifier and Type | Method and Description |
---|---|
static TileEntityArchetype.Builder |
builder()
Creates a
TileEntityArchetype.Builder to get TileEntityArchetype s. |
TileEntityArchetype |
copy()
Creates a clone copy of this
ValueContainer as a new
ValueContainer such that all the BaseValue s 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, toSnapshot
validateRawData
getContentVersion, toContainer
getApplicableProperties, getProperty
static TileEntityArchetype.Builder builder()
TileEntityArchetype.Builder
to get TileEntityArchetype
s.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 DataHolder
container
- A container containing all raw data to set on this data
holderInvalidDataException
- If the data is not valid for the archetyped
tile entityTileEntityArchetype copy()
ValueContainer
ValueContainer
as a new
ValueContainer
such that all the BaseValue
s are
safely duplicated to the new instance.copy
in interface ValueContainer<DataHolder>