Class PylonEntity
-
- All Implemented Interfaces:
public abstract class PylonEntity<E extends Entity>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
PylonEntity.Companion
-
Field Summary
Fields Modifier and Type Field Description private final NamespacedKey
key
private final PylonEntitySchema
schema
private final UUID
uuid
private final E
entity
public final static PylonEntity.Companion
Companion
-
Constructor Summary
Constructors Constructor Description PylonEntity(NamespacedKey key, E entity)
PylonEntity(E entity)
-
Method Summary
Modifier and Type Method Description final NamespacedKey
getKey()
final PylonEntitySchema
getSchema()
final UUID
getUuid()
final E
getEntity()
WailaConfig
getWaila(Player player)
This will only be called for the player if the player has WAILA enabled Unit
write(PersistentDataContainer pdc)
Write all the state saved in the Pylon entity class to the entity's persistent data container. final Config
getSettings()
final static Unit
register(NamespacedKey key, Class<?> entityClass, Class<out PylonEntity<?>> pylonEntityClass)
-
-
Constructor Detail
-
PylonEntity
PylonEntity(NamespacedKey key, E entity)
-
PylonEntity
PylonEntity(E entity)
-
-
Method Detail
-
getKey
final NamespacedKey getKey()
-
getSchema
final PylonEntitySchema getSchema()
-
getWaila
WailaConfig getWaila(Player player)
This will only be called for the player if the player has WAILA enabled
- Returns:
the WAILA configuration, or null if WAILA should not be shown for this block
-
write
Unit write(PersistentDataContainer pdc)
Write all the state saved in the Pylon entity class to the entity's persistent data container.
-
getSettings
final Config getSettings()
-
register
final static Unit register(NamespacedKey key, Class<?> entityClass, Class<out PylonEntity<?>> pylonEntityClass)
-
-
-
-