Package net.glowstone.io.structure
Class StructurePieceStore<T extends GlowStructurePiece>
java.lang.Object
net.glowstone.io.structure.StructurePieceStore<T>
- Type Parameters:
T
- The type of structure piece being stored.
- Direct Known Subclasses:
DesertTempleStore
,JungleTempleStore
,WitchHutStore
The base for structure piece store classes.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
abstract T
Create a structure piece of this store's type.boolean
getId()
getType()
int
hashCode()
void
load
(T structurePiece, CompoundTag compound) Load structure piece data of the appropriate type from the given compound tag.void
save
(T structurePiece, CompoundTag compound) Save information about this structure piece to the given tag.toString()
-
Constructor Details
-
StructurePieceStore
-
-
Method Details
-
createStructurePiece
Create a structure piece of this store's type.The load method will be called separately.
- Returns:
- The structure piece.
-
load
Load structure piece data of the appropriate type from the given compound tag.- Parameters:
structurePiece
- The target structure piece.compound
- The structure piece's tag.
-
save
Save information about this structure piece to the given tag.- Parameters:
structurePiece
- The structure piece to save.compound
- The target tag.
-
getType
-
getId
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-