public class EntityModule extends JavaPlugin
Class EntityModule. Provides entitymodule functionality for the Hytale server.
java.lang.Object > JavaPlugin > EntityModule
Field Summary
preClearMarkersGroup
Field preClearMarkersGroup.
entityRef
Field entityRef.
store
Field store.
world
Field world.
playerComponent
Field playerComponent.
hotbarManager
Field hotbarManager.
entityStoreRegistry
Field entityStoreRegistry.
_trackerGroup
Field _trackerGroup.
gameplayMovementConfigId
Field gameplayMovementConfigId.
ref
Field ref.
playerRefComponent
Field playerRefComponent.
packetHandler
Field packetHandler.
movementManagerComponent
Field movementManagerComponent.
gameplayMovementConfigIndex
Field gameplayMovementConfigIndex.
movConfig
Field movConfig.
id
Field id.
entityComponent
Field entityComponent.
displayName
Field displayName.
entity
Field entity.
transformComponent
Field transformComponent.
uuid
Field uuid.
legacyUuid
Field legacyUuid.
Method Detail
setup
void
setup
()
Method setup.
TangiableEntitySpatialSystem
new
TangiableEntitySpatialSystem
(CollisionModule.get()
Method TangiableEntitySpatialSystem.
- Parameters:
CollisionModule.get(CollisionModule.get(
RotateObjectSystem
new
RotateObjectSystem
(this.transformComponentType, this.rotateObjectComponentType)
Method RotateObjectSystem.
- Parameters:
this.transformComponentTypethis.transformComponentTypethis.rotateObjectComponentTypethis.rotateObjectComponentType
UpdateEntitySeedSystem
new
UpdateEntitySeedSystem
()
Method UpdateEntitySeedSystem.
LegacyTransformSystem
new
LegacyTransformSystem
()
Method LegacyTransformSystem.
LegacyUUIDSystem
new
LegacyUUIDSystem
()
Method LegacyUUIDSystem.
LegacyUUIDUpdateSystem
new
LegacyUUIDUpdateSystem
()
Method LegacyUUIDUpdateSystem.
PlayerCollisionResultAddSystem
new
PlayerCollisionResultAddSystem
(this.playerComponentType, this.collisionResultComponentType)
Method PlayerCollisionResultAddSystem.
- Parameters:
this.playerComponentTypethis.playerComponentTypethis.collisionResultComponentTypethis.collisionResultComponentType
PlayerCameraAddSystem
new
PlayerCameraAddSystem
()
Method PlayerCameraAddSystem.
KDTree
new
KDTree
(Ref::isValid)
Method KDTree.
- Parameters:
Ref::isValidRef::isValid
PlayerSpatialSystem
new
PlayerSpatialSystem
(this.playerSpatialResourceType)
Method PlayerSpatialSystem.
- Parameters:
this.playerSpatialResourceTypethis.playerSpatialResourceType
EntitySpatialSystem
new
EntitySpatialSystem
(this.entitySpatialResourceType)
Method EntitySpatialSystem.
- Parameters:
this.entitySpatialResourceTypethis.entitySpatialResourceType
DespawnSystem
new
DespawnSystem
(this.despawnComponentComponentType)
Method DespawnSystem.
- Parameters:
this.despawnComponentComponentTypethis.despawnComponentComponentType
ItemSpatialSystem
new
ItemSpatialSystem
(this.itemSpatialResourceType)
Method ItemSpatialSystem.
- Parameters:
this.itemSpatialResourceTypethis.itemSpatialResourceType
ItemMergeSystem
new
ItemMergeSystem
(this.itemComponentType, this.interactableComponentType, this.itemSpatialResourceType)
Method ItemMergeSystem.
- Parameters:
this.itemComponentTypethis.itemComponentTypethis.interactableComponentTypethis.interactableComponentTypethis.itemSpatialResourceTypethis.itemSpatialResourceType
PlayerItemEntityPickupSystem
new
PlayerItemEntityPickupSystem
(this.itemComponentType, this.playerComponentType, this.playerSpatialResourceType)
Method PlayerItemEntityPickupSystem.
- Parameters:
this.itemComponentTypethis.itemComponentTypethis.playerComponentTypethis.playerComponentTypethis.playerSpatialResourceTypethis.playerSpatialResourceType
ItemPrePhysicsSystem
new
ItemPrePhysicsSystem
(this.itemComponentType, this.boundingBoxComponentType, this.velocityComponentType, this.transformComponentType, this.physicsValuesComponentType)
Method ItemPrePhysicsSystem.
- Parameters:
this.itemComponentTypethis.itemComponentTypethis.boundingBoxComponentTypethis.boundingBoxComponentTypethis.velocityComponentTypethis.velocityComponentTypethis.transformComponentTypethis.transformComponentTypethis.physicsValuesComponentTypethis.physicsValuesComponentType
ItemPhysicsSystem
new
ItemPhysicsSystem
(this.itemPhysicsComponentType, this.velocityComponentType, this.boundingBoxComponentType)
Method ItemPhysicsSystem.
- Parameters:
this.itemPhysicsComponentTypethis.itemPhysicsComponentTypethis.velocityComponentTypethis.velocityComponentTypethis.boundingBoxComponentTypethis.boundingBoxComponentType
PickupItemSystem
new
PickupItemSystem
(this.pickupItemComponentType, this.transformComponentType)
Method PickupItemSystem.
- Parameters:
this.pickupItemComponentTypethis.pickupItemComponentTypethis.transformComponentTypethis.transformComponentType
LivingEntityEffectSystem
new
LivingEntityEffectSystem
()
Method LivingEntityEffectSystem.
PlayerProcessMovementSystem
new
PlayerProcessMovementSystem
(this.playerComponentType, this.velocityComponentType, this.collisionResultComponentType)
Method PlayerProcessMovementSystem.
- Parameters:
this.playerComponentTypethis.playerComponentTypethis.velocityComponentTypethis.velocityComponentTypethis.collisionResultComponentTypethis.collisionResultComponentType
NetworkSendableSpatialSystem
new
NetworkSendableSpatialSystem
(this.networkSendableSpatialResourceType)
Method NetworkSendableSpatialSystem.
- Parameters:
this.networkSendableSpatialResourceTypethis.networkSendableSpatialResourceType
LivingEntityEffectClearChangesSystem
new
LivingEntityEffectClearChangesSystem
()
Method LivingEntityEffectClearChangesSystem.
PlayerSendInventorySystem
new
PlayerSendInventorySystem
(this.playerComponentType)
Method PlayerSendInventorySystem.
- Parameters:
this.playerComponentTypethis.playerComponentType
DamageDataSetupSystem
new
DamageDataSetupSystem
(this.damageDataComponentType)
Method DamageDataSetupSystem.
- Parameters:
this.damageDataComponentTypethis.damageDataComponentType
TangibleMigrationSystem
new
TangibleMigrationSystem
(ProjectileComponent.getComponentType()
Method TangibleMigrationSystem.
- Parameters:
ProjectileComponent.getComponentType(ProjectileComponent.getComponentType(
PhysicsValuesAddSystem
new
PhysicsValuesAddSystem
(this.physicsValuesComponentType)
Method PhysicsValuesAddSystem.
- Parameters:
this.physicsValuesComponentTypethis.physicsValuesComponentType
GenericVelocityInstructionSystem
new
GenericVelocityInstructionSystem
()
Method GenericVelocityInstructionSystem.
PlayerVelocityInstructionSystem
new
PlayerVelocityInstructionSystem
()
Method PlayerVelocityInstructionSystem.
IndexedLookupTableAssetMap
new
IndexedLookupTableAssetMap
(HitboxCollisionConfig[]::new)
Method IndexedLookupTableAssetMap.
- Parameters:
HitboxCollisionConfig[]::newHitboxCollisionConfig[]::new
HitboxCollisionConfigPacketGenerator
new
HitboxCollisionConfigPacketGenerator
()
Method HitboxCollisionConfigPacketGenerator.
RepulsionConfigPacketGenerator
new
RepulsionConfigPacketGenerator
()
Method RepulsionConfigPacketGenerator.
start
void
start
()
Method start.
getMigrationSystemType
MigrationSystem>
getMigrationSystemType
()
Method getMigrationSystemType.
getVelocityModifyingSystemType
Method getVelocityModifyingSystemType.
getPlayerComponentType
Player>
getPlayerComponentType
()
Method getPlayerComponentType.
getFrozenComponentType
Frozen>
getFrozenComponentType
()
Method getFrozenComponentType.
getChunkTrackerComponentType
ChunkTracker>
getChunkTrackerComponentType
()
Method getChunkTrackerComponentType.
getPlayerSkinComponentType
PlayerSkinComponent>
getPlayerSkinComponentType
()
Method getPlayerSkinComponentType.
getDisplayNameComponentType
DisplayNameComponent>
getDisplayNameComponentType
()
Method getDisplayNameComponentType.
getApplyRandomSkinPersistedComponent
ApplyRandomSkinPersistedComponent>
getApplyRandomSkinPersistedComponent
()
Method getApplyRandomSkinPersistedComponent.
getEntityGroupComponentType
EntityGroup>
getEntityGroupComponentType
()
Method getEntityGroupComponentType.
getPlayerSpatialResourceType
EntityStore>>
getPlayerSpatialResourceType
()
Method getPlayerSpatialResourceType.
getItemSpatialResourceType
EntityStore>>
getItemSpatialResourceType
()
Method getItemSpatialResourceType.
getNetworkSendableSpatialResourceType
EntityStore>>
getNetworkSendableSpatialResourceType
()
Method getNetworkSendableSpatialResourceType.
getCollisionResultComponentType
CollisionResultComponent>
getCollisionResultComponentType
()
Method getCollisionResultComponentType.
getEntityViewerComponentType
EntityTrackerSystems.EntityViewer>
getEntityViewerComponentType
()
Method getEntityViewerComponentType.
getVisibleComponentType
EntityTrackerSystems.Visible>
getVisibleComponentType
()
Method getVisibleComponentType.
getDamageDataComponentType
DamageDataComponent>
getDamageDataComponentType
()
Method getDamageDataComponentType.
getKnockbackComponentType
KnockbackComponent>
getKnockbackComponentType
()
Method getKnockbackComponentType.
getDespawnComponentType
DespawnComponent>
getDespawnComponentType
()
Method getDespawnComponentType.
getSnapshotWorldInfoResourceType
SnapshotSystems.SnapshotWorldInfo>
getSnapshotWorldInfoResourceType
()
Method getSnapshotWorldInfoResourceType.
getSnapshotBufferComponentType
SnapshotBuffer>
getSnapshotBufferComponentType
()
Method getSnapshotBufferComponentType.
getInteractableComponentType
Interactable>
getInteractableComponentType
()
Method getInteractableComponentType.
getIntangibleComponentType
Intangible>
getIntangibleComponentType
()
Method getIntangibleComponentType.
getPreventPickupComponentType
PreventPickup>
getPreventPickupComponentType
()
Method getPreventPickupComponentType.
getInvulnerableComponentType
Invulnerable>
getInvulnerableComponentType
()
Method getInvulnerableComponentType.
getRespondToHitComponentType
RespondToHit>
getRespondToHitComponentType
()
Method getRespondToHitComponentType.
getInteractableQueueResourceType
EntityInteractableSystems.QueueResource>
getInteractableQueueResourceType
()
Method getInteractableQueueResourceType.
getIntangibleQueueResourceType
IntangibleSystems.QueueResource>
getIntangibleQueueResourceType
()
Method getIntangibleQueueResourceType.
getInvulnerableQueueResourceType
InvulnerableSystems.QueueResource>
getInvulnerableQueueResourceType
()
Method getInvulnerableQueueResourceType.
getRespondToHitQueueResourceType
RespondToHitSystems.QueueResource>
getRespondToHitQueueResourceType
()
Method getRespondToHitQueueResourceType.
getHiddenFromAdventurePlayerComponentType
HiddenFromAdventurePlayers>
getHiddenFromAdventurePlayerComponentType
()
Method getHiddenFromAdventurePlayerComponentType.
getFromPrefabComponentType
FromPrefab>
getFromPrefabComponentType
()
Method getFromPrefabComponentType.
getFromWorldGenComponentType
FromWorldGen>
getFromWorldGenComponentType
()
Method getFromWorldGenComponentType.
getWorldGenIdComponentType
WorldGenId>
getWorldGenIdComponentType
()
Method getWorldGenIdComponentType.
getMovementManagerComponentType
MovementManager>
getMovementManagerComponentType
()
Method getMovementManagerComponentType.
getNameplateComponentType
Nameplate>
getNameplateComponentType
()
Method getNameplateComponentType.
getPreClearMarkersGroup
Method getPreClearMarkersGroup.
getPersistentRefCountComponentType
PersistentRefCount>
getPersistentRefCountComponentType
()
Method getPersistentRefCountComponentType.
getTransformComponentType
TransformComponent>
getTransformComponentType
()
Method getTransformComponentType.
getHeadRotationComponentType
HeadRotation>
getHeadRotationComponentType
()
Method getHeadRotationComponentType.
getNetworkIdComponentType
NetworkId>
getNetworkIdComponentType
()
Method getNetworkIdComponentType.
getEffectControllerComponentType
EffectControllerComponent>
getEffectControllerComponentType
()
Method getEffectControllerComponentType.
getMovementStatesComponentType
MovementStatesComponent>
getMovementStatesComponentType
()
Method getMovementStatesComponentType.
getBlockEntityComponentType
BlockEntity>
getBlockEntityComponentType
()
Method getBlockEntityComponentType.
getEntityScaleComponentType
EntityScaleComponent>
getEntityScaleComponentType
()
Method getEntityScaleComponentType.
getCameraManagerComponentType
CameraManager>
getCameraManagerComponentType
()
Method getCameraManagerComponentType.
getUuidComponentType
UUIDComponent>
getUuidComponentType
()
Method getUuidComponentType.
getPlayerInputComponentType
PlayerInput>
getPlayerInputComponentType
()
Method getPlayerInputComponentType.
getKnockbackSimulationComponentType
KnockbackSimulation>
getKnockbackSimulationComponentType
()
Method getKnockbackSimulationComponentType.
getTeleportComponentType
Teleport>
getTeleportComponentType
()
Method getTeleportComponentType.
getProjectileComponentType
ProjectileComponent>
getProjectileComponentType
()
Method getProjectileComponentType.
getPendingTeleportComponentType
PendingTeleport>
getPendingTeleportComponentType
()
Method getPendingTeleportComponentType.
getModelComponentType
ModelComponent>
getModelComponentType
()
Method getModelComponentType.
getPersistentModelComponentType
PersistentModel>
getPersistentModelComponentType
()
Method getPersistentModelComponentType.
getPropComponentType
PropComponent>
getPropComponentType
()
Method getPropComponentType.
getBoundingBoxComponentType
BoundingBox>
getBoundingBoxComponentType
()
Method getBoundingBoxComponentType.
getHitboxCollisionComponentType
HitboxCollision>
getHitboxCollisionComponentType
()
Method getHitboxCollisionComponentType.
getVelocityComponentType
Velocity>
getVelocityComponentType
()
Method getVelocityComponentType.
getPhysicsValuesComponentType
PhysicsValues>
getPhysicsValuesComponentType
()
Method getPhysicsValuesComponentType.
getRepulsionComponentType
Repulsion>
getRepulsionComponentType
()
Method getRepulsionComponentType.
getEntitySpatialResourceType
EntityStore>>
getEntitySpatialResourceType
()
Method getEntitySpatialResourceType.
getItemComponentType
ItemComponent>
getItemComponentType
()
Method getItemComponentType.
getPickupItemComponentType
PickupItemComponent>
getPickupItemComponentType
()
Method getPickupItemComponentType.
getPreventItemMergingType
PreventItemMerging>
getPreventItemMergingType
()
Method getPreventItemMergingType.
getItemPhysicsComponentType
ItemPhysicsComponent>
getItemPhysicsComponentType
()
Method getItemPhysicsComponentType.
getDynamicLightComponentType
DynamicLight>
getDynamicLightComponentType
()
Method getDynamicLightComponentType.
getPersistentDynamicLightComponentType
PersistentDynamicLight>
getPersistentDynamicLightComponentType
()
Method getPersistentDynamicLightComponentType.
getPrefabCopyableComponentType
PrefabCopyableComponent>
getPrefabCopyableComponentType
()
Method getPrefabCopyableComponentType.
getRotateObjectComponentType
RotateObjectComponent>
getRotateObjectComponentType
()
Method getRotateObjectComponentType.
getNewSpawnComponentType
NewSpawnComponent>
getNewSpawnComponentType
()
Method getNewSpawnComponentType.
onMovementConfigLoadedAssetsEvent
Method onMovementConfigLoadedAssetsEvent.
- Parameters:
@Nonnull final LoadedAssetsEventevent>
UpdateMovementSettings
new
UpdateMovementSettings
(movementConfig.toPacket()
Method UpdateMovementSettings.
- Parameters:
movementConfig.toPacket(movementConfig.toPacket(
if
else
if
(!gameplayMovementConfigId.equals(movementConfig.getId()
Method if.
- Parameters:
!gameplayMovementConfigId.equals(movementConfig.getId(!gameplayMovementConfigId.equals(movementConfig.getId(
onGameplayConfigLoadedAssetsEvent
Method onGameplayConfigLoadedAssetsEvent.
- Parameters:
final LoadedAssetsEventevent>
getAudioComponentType
AudioComponent>
getAudioComponentType
()
Method getAudioComponentType.
getMovementAudioComponentType
MovementAudioComponent>
getMovementAudioComponentType
()
Method getMovementAudioComponentType.
getPositionDataComponentType
PositionDataComponent>
getPositionDataComponentType
()
Method getPositionDataComponentType.
getPlayerSettingsComponentType
PlayerSettings>
getPlayerSettingsComponentType
()
Method getPlayerSettingsComponentType.
getUniqueItemUsagesComponentType
UniqueItemUsagesComponent>
getUniqueItemUsagesComponentType
()
Method getUniqueItemUsagesComponentType.
getActiveAnimationComponentType
ActiveAnimationComponent>
getActiveAnimationComponentType
()
Method getActiveAnimationComponentType.
registerEntity
EntityRegistration
registerEntity
(@Nonnull final String id, @Nonnull final Class clazz, final Function entityConstructor, @Nullable final DirectDecodeCodec codec)
Method registerEntity.
- Parameters:
@Nonnull final Stringid@Nonnull final Classclazzfinal FunctionentityConstructor@Nullable final DirectDecodeCodeccodec
EntityRegistration
new
EntityRegistration
(clazz, ()
Method EntityRegistration.
- Parameters:
clazzclazz((
unregisterEntity
void
unregisterEntity
(final Class clazz)
Method unregisterEntity.
- Parameters:
final Classclazz
getConstructor
T>
getConstructor
(@Nullable final Class entityClass)
Method getConstructor.
- Parameters:
@Nullable final ClassentityClass
getCodec
Method getCodec.
- Parameters:
@Nullable final ClassentityClass
getClass
Entity>
getClass
(@Nullable final String name)
Method getClass.
- Parameters:
@Nullable final Stringname
getIdentifier
String
getIdentifier
(@Nullable final Class extends Entity> entityClass)
Method getIdentifier.
- Parameters:
@Nullable final Class extends Entity>entityClass
getComponentType
T>
getComponentType
(@Nullable final Class entityClass)
Method getComponentType.
- Parameters:
@Nullable final ClassentityClass
IllegalArgumentException
new
IllegalArgumentException
("Get player component type via #getPlayerComponentType()
Method IllegalArgumentException.
- Parameters:
"Get player component type via#getPlayerComponentType(
LegacyEntityHolderSystem
Method LegacyEntityHolderSystem.
- Parameters:
final ComponentTypecomponentType
getDependencies
Set>
getDependencies
()
Method getDependencies.
onEntityAdd
void
onEntityAdd
(@Nonnull final Holder holder, @Nonnull final AddReason reason, @Nonnull final Store store)
Method onEntityAdd.
- Parameters:
@Nonnull final Holderholder@Nonnull final AddReasonreason@Nonnull final Storestore
NetworkId
new
NetworkId
(entityComponent.getNetworkId()
Method NetworkId.
- Parameters:
entityComponent.getNetworkId(entityComponent.getNetworkId(
DisplayNameComponent
new
DisplayNameComponent
(Message.raw(displayName)
Method DisplayNameComponent.
- Parameters:
Message.raw(displayNameMessage.raw(displayName
onEntityRemoved
void
onEntityRemoved
(@Nonnull final Holder holder, @Nonnull final RemoveReason reason, @Nonnull final Store store)
Method onEntityRemoved.
- Parameters:
@Nonnull final Holderholder@Nonnull final RemoveReasonreason@Nonnull final Storestore
toString
String
toString
()
Method toString.
onEntityAdded
void
onEntityAdded
(@Nonnull final Ref ref, @Nonnull final AddReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onEntityAdded.
- Parameters:
@Nonnull final Refref@Nonnull final AddReasonreason@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
onEntityRemove
void
onEntityRemove
(@Nonnull final Ref ref, @Nonnull final RemoveReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onEntityRemove.
- Parameters:
@Nonnull final Refref@Nonnull final RemoveReasonreason@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
HiddenFromPlayerMigrationSystem
Method HiddenFromPlayerMigrationSystem.
- Parameters:
final Queryquery
SystemDependency
new
SystemDependency
(Order.BEFORE, (ClassMethod SystemDependency.
- Parameters:
Order.BEFOREOrder.BEFORE(Class(Class
UUIDComponent
new
UUIDComponent
(legacyUuid)
Method UUIDComponent.
- Parameters:
legacyUuidlegacyUuid
componentType
UUIDComponent>
componentType
()
Method componentType.
onComponentAdded
void
onComponentAdded
(@Nonnull final Ref ref, @Nonnull final UUIDComponent component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onComponentAdded.
- Parameters:
@Nonnull final Refref@Nonnull final UUIDComponentcomponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
onComponentSet
void
onComponentSet
(@Nonnull final Ref ref, final UUIDComponent oldComponent, @Nonnull final UUIDComponent newComponent, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onComponentSet.
- Parameters:
@Nonnull final Refreffinal UUIDComponentoldComponent@Nonnull final UUIDComponentnewComponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
onComponentRemoved
void
onComponentRemoved
(@Nonnull final Ref ref, @Nonnull final UUIDComponent component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onComponentRemoved.
- Parameters:
@Nonnull final Refref@Nonnull final UUIDComponentcomponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer