EntityModule

public class EntityModule extends JavaPlugin

Class EntityModule. Provides entitymodule functionality for the Hytale server.

java.lang.Object > JavaPlugin > EntityModule

Field Summary

preClearMarkersGroup

private SystemGroup preClearMarkersGroup

Field preClearMarkersGroup.

entityRef

final Ref entityRef

Field entityRef.

store

final Store store

Field store.

world

final World world

Field world.

playerComponent

final Player playerComponent

Field playerComponent.

hotbarManager

final HotbarManager hotbarManager

Field hotbarManager.

entityStoreRegistry

final ComponentRegistryProxy entityStoreRegistry

Field entityStoreRegistry.

_trackerGroup

final SystemGroup _trackerGroup

Field _trackerGroup.

gameplayMovementConfigId

final String gameplayMovementConfigId

Field gameplayMovementConfigId.

ref

final Ref ref

Field ref.

playerRefComponent

final PlayerRef playerRefComponent

Field playerRefComponent.

packetHandler

final PacketHandler packetHandler

Field packetHandler.

movementManagerComponent

final MovementManager movementManagerComponent

Field movementManagerComponent.

gameplayMovementConfigIndex

final int gameplayMovementConfigIndex

Field gameplayMovementConfigIndex.

movConfig

final MovementConfig movConfig

Field movConfig.

id

final String id

Field id.

entityComponent

final T entityComponent

Field entityComponent.

displayName

final String displayName

Field displayName.

entity

final T entity

Field entity.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

uuid

final UUIDComponent uuid

Field uuid.

legacyUuid

final UUID legacyUuid

Field legacyUuid.

Method Detail

get

static EntityModule get ()

Method get.

EntityModule

public public EntityModule (@Nonnull final JavaPluginInit init)

Method EntityModule.

Parameters:
@Nonnull final JavaPluginInit init

setup

protected void setup ()

Method setup.

TangiableEntitySpatialSystem

public new TangiableEntitySpatialSystem (CollisionModule.get()

Method TangiableEntitySpatialSystem.

Parameters:
CollisionModule.get( CollisionModule.get(

RotateObjectSystem

public new RotateObjectSystem (this.transformComponentType, this.rotateObjectComponentType)

Method RotateObjectSystem.

Parameters:
this.transformComponentType this.transformComponentType
this.rotateObjectComponentType this.rotateObjectComponentType

UpdateEntitySeedSystem

public new UpdateEntitySeedSystem ()

Method UpdateEntitySeedSystem.

LegacyTransformSystem

public new LegacyTransformSystem ()

Method LegacyTransformSystem.

LegacyUUIDSystem

public new LegacyUUIDSystem ()

Method LegacyUUIDSystem.

LegacyUUIDUpdateSystem

public new LegacyUUIDUpdateSystem ()

Method LegacyUUIDUpdateSystem.

PlayerCollisionResultAddSystem

public new PlayerCollisionResultAddSystem (this.playerComponentType, this.collisionResultComponentType)

Method PlayerCollisionResultAddSystem.

Parameters:
this.playerComponentType this.playerComponentType
this.collisionResultComponentType this.collisionResultComponentType

PlayerCameraAddSystem

public new PlayerCameraAddSystem ()

Method PlayerCameraAddSystem.

KDTree

public new KDTree (Ref::isValid)

Method KDTree.

Parameters:
Ref::isValid Ref::isValid

PlayerSpatialSystem

public new PlayerSpatialSystem (this.playerSpatialResourceType)

Method PlayerSpatialSystem.

Parameters:
this.playerSpatialResourceType this.playerSpatialResourceType

EntitySpatialSystem

public new EntitySpatialSystem (this.entitySpatialResourceType)

Method EntitySpatialSystem.

Parameters:
this.entitySpatialResourceType this.entitySpatialResourceType

DespawnSystem

public new DespawnSystem (this.despawnComponentComponentType)

Method DespawnSystem.

Parameters:
this.despawnComponentComponentType this.despawnComponentComponentType

ItemSpatialSystem

public new ItemSpatialSystem (this.itemSpatialResourceType)

Method ItemSpatialSystem.

Parameters:
this.itemSpatialResourceType this.itemSpatialResourceType

ItemMergeSystem

public new ItemMergeSystem (this.itemComponentType, this.interactableComponentType, this.itemSpatialResourceType)

Method ItemMergeSystem.

Parameters:
this.itemComponentType this.itemComponentType
this.interactableComponentType this.interactableComponentType
this.itemSpatialResourceType this.itemSpatialResourceType

PlayerItemEntityPickupSystem

public new PlayerItemEntityPickupSystem (this.itemComponentType, this.playerComponentType, this.playerSpatialResourceType)

Method PlayerItemEntityPickupSystem.

Parameters:
this.itemComponentType this.itemComponentType
this.playerComponentType this.playerComponentType
this.playerSpatialResourceType this.playerSpatialResourceType

ItemPrePhysicsSystem

public new ItemPrePhysicsSystem (this.itemComponentType, this.boundingBoxComponentType, this.velocityComponentType, this.transformComponentType, this.physicsValuesComponentType)

Method ItemPrePhysicsSystem.

Parameters:
this.itemComponentType this.itemComponentType
this.boundingBoxComponentType this.boundingBoxComponentType
this.velocityComponentType this.velocityComponentType
this.transformComponentType this.transformComponentType
this.physicsValuesComponentType this.physicsValuesComponentType

ItemPhysicsSystem

public new ItemPhysicsSystem (this.itemPhysicsComponentType, this.velocityComponentType, this.boundingBoxComponentType)

Method ItemPhysicsSystem.

Parameters:
this.itemPhysicsComponentType this.itemPhysicsComponentType
this.velocityComponentType this.velocityComponentType
this.boundingBoxComponentType this.boundingBoxComponentType

PickupItemSystem

public new PickupItemSystem (this.pickupItemComponentType, this.transformComponentType)

Method PickupItemSystem.

Parameters:
this.pickupItemComponentType this.pickupItemComponentType
this.transformComponentType this.transformComponentType

LivingEntityEffectSystem

public new LivingEntityEffectSystem ()

Method LivingEntityEffectSystem.

PlayerProcessMovementSystem

public new PlayerProcessMovementSystem (this.playerComponentType, this.velocityComponentType, this.collisionResultComponentType)

Method PlayerProcessMovementSystem.

Parameters:
this.playerComponentType this.playerComponentType
this.velocityComponentType this.velocityComponentType
this.collisionResultComponentType this.collisionResultComponentType

NetworkSendableSpatialSystem

public new NetworkSendableSpatialSystem (this.networkSendableSpatialResourceType)

Method NetworkSendableSpatialSystem.

Parameters:
this.networkSendableSpatialResourceType this.networkSendableSpatialResourceType

LivingEntityEffectClearChangesSystem

public new LivingEntityEffectClearChangesSystem ()

Method LivingEntityEffectClearChangesSystem.

PlayerSendInventorySystem

public new PlayerSendInventorySystem (this.playerComponentType)

Method PlayerSendInventorySystem.

Parameters:
this.playerComponentType this.playerComponentType

DamageDataSetupSystem

public new DamageDataSetupSystem (this.damageDataComponentType)

Method DamageDataSetupSystem.

Parameters:
this.damageDataComponentType this.damageDataComponentType

TangibleMigrationSystem

public new TangibleMigrationSystem (ProjectileComponent.getComponentType()

Method TangibleMigrationSystem.

Parameters:
ProjectileComponent.getComponentType( ProjectileComponent.getComponentType(

PhysicsValuesAddSystem

public new PhysicsValuesAddSystem (this.physicsValuesComponentType)

Method PhysicsValuesAddSystem.

Parameters:
this.physicsValuesComponentType this.physicsValuesComponentType

GenericVelocityInstructionSystem

public new GenericVelocityInstructionSystem ()

Method GenericVelocityInstructionSystem.

PlayerVelocityInstructionSystem

public new PlayerVelocityInstructionSystem ()

Method PlayerVelocityInstructionSystem.

IndexedLookupTableAssetMap

public new IndexedLookupTableAssetMap (HitboxCollisionConfig[]::new)

Method IndexedLookupTableAssetMap.

Parameters:
HitboxCollisionConfig[]::new HitboxCollisionConfig[]::new

HitboxCollisionConfigPacketGenerator

public new HitboxCollisionConfigPacketGenerator ()

Method HitboxCollisionConfigPacketGenerator.

RepulsionConfigPacketGenerator

public new RepulsionConfigPacketGenerator ()

Method RepulsionConfigPacketGenerator.

start

protected void start ()

Method start.

getMigrationSystemType

public MigrationSystem> getMigrationSystemType ()

Method getMigrationSystemType.

getVelocityModifyingSystemType

public ISystem> getVelocityModifyingSystemType ()

Method getVelocityModifyingSystemType.

getPlayerComponentType

public Player> getPlayerComponentType ()

Method getPlayerComponentType.

getFrozenComponentType

public Frozen> getFrozenComponentType ()

Method getFrozenComponentType.

getChunkTrackerComponentType

public ChunkTracker> getChunkTrackerComponentType ()

Method getChunkTrackerComponentType.

getPlayerSkinComponentType

public PlayerSkinComponent> getPlayerSkinComponentType ()

Method getPlayerSkinComponentType.

getDisplayNameComponentType

public DisplayNameComponent> getDisplayNameComponentType ()

Method getDisplayNameComponentType.

getApplyRandomSkinPersistedComponent

public ApplyRandomSkinPersistedComponent> getApplyRandomSkinPersistedComponent ()

Method getApplyRandomSkinPersistedComponent.

getEntityGroupComponentType

public EntityGroup> getEntityGroupComponentType ()

Method getEntityGroupComponentType.

getPlayerSpatialResourceType

public EntityStore>> getPlayerSpatialResourceType ()

Method getPlayerSpatialResourceType.

getItemSpatialResourceType

public EntityStore>> getItemSpatialResourceType ()

Method getItemSpatialResourceType.

getNetworkSendableSpatialResourceType

public EntityStore>> getNetworkSendableSpatialResourceType ()

Method getNetworkSendableSpatialResourceType.

getCollisionResultComponentType

public CollisionResultComponent> getCollisionResultComponentType ()

Method getCollisionResultComponentType.

getEntityViewerComponentType

public EntityTrackerSystems.EntityViewer> getEntityViewerComponentType ()

Method getEntityViewerComponentType.

getVisibleComponentType

public EntityTrackerSystems.Visible> getVisibleComponentType ()

Method getVisibleComponentType.

getDamageDataComponentType

public DamageDataComponent> getDamageDataComponentType ()

Method getDamageDataComponentType.

getKnockbackComponentType

public KnockbackComponent> getKnockbackComponentType ()

Method getKnockbackComponentType.

getDespawnComponentType

public DespawnComponent> getDespawnComponentType ()

Method getDespawnComponentType.

getSnapshotWorldInfoResourceType

public SnapshotSystems.SnapshotWorldInfo> getSnapshotWorldInfoResourceType ()

Method getSnapshotWorldInfoResourceType.

getSnapshotBufferComponentType

public SnapshotBuffer> getSnapshotBufferComponentType ()

Method getSnapshotBufferComponentType.

getInteractableComponentType

public Interactable> getInteractableComponentType ()

Method getInteractableComponentType.

getIntangibleComponentType

public Intangible> getIntangibleComponentType ()

Method getIntangibleComponentType.

getPreventPickupComponentType

public PreventPickup> getPreventPickupComponentType ()

Method getPreventPickupComponentType.

getInvulnerableComponentType

public Invulnerable> getInvulnerableComponentType ()

Method getInvulnerableComponentType.

getRespondToHitComponentType

public RespondToHit> getRespondToHitComponentType ()

Method getRespondToHitComponentType.

getInteractableQueueResourceType

public EntityInteractableSystems.QueueResource> getInteractableQueueResourceType ()

Method getInteractableQueueResourceType.

getIntangibleQueueResourceType

public IntangibleSystems.QueueResource> getIntangibleQueueResourceType ()

Method getIntangibleQueueResourceType.

getInvulnerableQueueResourceType

public InvulnerableSystems.QueueResource> getInvulnerableQueueResourceType ()

Method getInvulnerableQueueResourceType.

getRespondToHitQueueResourceType

public RespondToHitSystems.QueueResource> getRespondToHitQueueResourceType ()

Method getRespondToHitQueueResourceType.

getHiddenFromAdventurePlayerComponentType

public HiddenFromAdventurePlayers> getHiddenFromAdventurePlayerComponentType ()

Method getHiddenFromAdventurePlayerComponentType.

getFromPrefabComponentType

public FromPrefab> getFromPrefabComponentType ()

Method getFromPrefabComponentType.

getFromWorldGenComponentType

public FromWorldGen> getFromWorldGenComponentType ()

Method getFromWorldGenComponentType.

getWorldGenIdComponentType

public WorldGenId> getWorldGenIdComponentType ()

Method getWorldGenIdComponentType.

getMovementManagerComponentType

public MovementManager> getMovementManagerComponentType ()

Method getMovementManagerComponentType.

getNameplateComponentType

public Nameplate> getNameplateComponentType ()

Method getNameplateComponentType.

getPreClearMarkersGroup

public SystemGroup getPreClearMarkersGroup ()

Method getPreClearMarkersGroup.

getPersistentRefCountComponentType

public PersistentRefCount> getPersistentRefCountComponentType ()

Method getPersistentRefCountComponentType.

getTransformComponentType

public TransformComponent> getTransformComponentType ()

Method getTransformComponentType.

getHeadRotationComponentType

public HeadRotation> getHeadRotationComponentType ()

Method getHeadRotationComponentType.

getNetworkIdComponentType

public NetworkId> getNetworkIdComponentType ()

Method getNetworkIdComponentType.

getEffectControllerComponentType

public EffectControllerComponent> getEffectControllerComponentType ()

Method getEffectControllerComponentType.

getMovementStatesComponentType

public MovementStatesComponent> getMovementStatesComponentType ()

Method getMovementStatesComponentType.

getBlockEntityComponentType

public BlockEntity> getBlockEntityComponentType ()

Method getBlockEntityComponentType.

getEntityScaleComponentType

public EntityScaleComponent> getEntityScaleComponentType ()

Method getEntityScaleComponentType.

getCameraManagerComponentType

public CameraManager> getCameraManagerComponentType ()

Method getCameraManagerComponentType.

getUuidComponentType

public UUIDComponent> getUuidComponentType ()

Method getUuidComponentType.

getPlayerInputComponentType

public PlayerInput> getPlayerInputComponentType ()

Method getPlayerInputComponentType.

getKnockbackSimulationComponentType

public KnockbackSimulation> getKnockbackSimulationComponentType ()

Method getKnockbackSimulationComponentType.

getTeleportComponentType

public Teleport> getTeleportComponentType ()

Method getTeleportComponentType.

getProjectileComponentType

public ProjectileComponent> getProjectileComponentType ()

Method getProjectileComponentType.

getPendingTeleportComponentType

public PendingTeleport> getPendingTeleportComponentType ()

Method getPendingTeleportComponentType.

getModelComponentType

public ModelComponent> getModelComponentType ()

Method getModelComponentType.

getPersistentModelComponentType

public PersistentModel> getPersistentModelComponentType ()

Method getPersistentModelComponentType.

getPropComponentType

public PropComponent> getPropComponentType ()

Method getPropComponentType.

getBoundingBoxComponentType

public BoundingBox> getBoundingBoxComponentType ()

Method getBoundingBoxComponentType.

getHitboxCollisionComponentType

public HitboxCollision> getHitboxCollisionComponentType ()

Method getHitboxCollisionComponentType.

getVelocityComponentType

public Velocity> getVelocityComponentType ()

Method getVelocityComponentType.

getPhysicsValuesComponentType

public PhysicsValues> getPhysicsValuesComponentType ()

Method getPhysicsValuesComponentType.

getRepulsionComponentType

public Repulsion> getRepulsionComponentType ()

Method getRepulsionComponentType.

getEntitySpatialResourceType

public EntityStore>> getEntitySpatialResourceType ()

Method getEntitySpatialResourceType.

getItemComponentType

public ItemComponent> getItemComponentType ()

Method getItemComponentType.

getPickupItemComponentType

public PickupItemComponent> getPickupItemComponentType ()

Method getPickupItemComponentType.

getPreventItemMergingType

public PreventItemMerging> getPreventItemMergingType ()

Method getPreventItemMergingType.

getItemPhysicsComponentType

public ItemPhysicsComponent> getItemPhysicsComponentType ()

Method getItemPhysicsComponentType.

getDynamicLightComponentType

public DynamicLight> getDynamicLightComponentType ()

Method getDynamicLightComponentType.

getPersistentDynamicLightComponentType

public PersistentDynamicLight> getPersistentDynamicLightComponentType ()

Method getPersistentDynamicLightComponentType.

getPrefabCopyableComponentType

public PrefabCopyableComponent> getPrefabCopyableComponentType ()

Method getPrefabCopyableComponentType.

getRotateObjectComponentType

public RotateObjectComponent> getRotateObjectComponentType ()

Method getRotateObjectComponentType.

getNewSpawnComponentType

public NewSpawnComponent> getNewSpawnComponentType ()

Method getNewSpawnComponentType.

onMovementConfigLoadedAssetsEvent

private void onMovementConfigLoadedAssetsEvent (@Nonnull final LoadedAssetsEvent> event)

Method onMovementConfigLoadedAssetsEvent.

Parameters:
@Nonnull final LoadedAssetsEvent> event

UpdateMovementSettings

public new UpdateMovementSettings (movementConfig.toPacket()

Method UpdateMovementSettings.

Parameters:
movementConfig.toPacket( movementConfig.toPacket(

if

public else if (!gameplayMovementConfigId.equals(movementConfig.getId()

Method if.

Parameters:
!gameplayMovementConfigId.equals(movementConfig.getId( !gameplayMovementConfigId.equals(movementConfig.getId(

onGameplayConfigLoadedAssetsEvent

private void onGameplayConfigLoadedAssetsEvent (final LoadedAssetsEvent> event)

Method onGameplayConfigLoadedAssetsEvent.

Parameters:
final LoadedAssetsEvent> event

getAudioComponentType

public AudioComponent> getAudioComponentType ()

Method getAudioComponentType.

getMovementAudioComponentType

public MovementAudioComponent> getMovementAudioComponentType ()

Method getMovementAudioComponentType.

getPositionDataComponentType

public PositionDataComponent> getPositionDataComponentType ()

Method getPositionDataComponentType.

getPlayerSettingsComponentType

public PlayerSettings> getPlayerSettingsComponentType ()

Method getPlayerSettingsComponentType.

getUniqueItemUsagesComponentType

public UniqueItemUsagesComponent> getUniqueItemUsagesComponentType ()

Method getUniqueItemUsagesComponentType.

getActiveAnimationComponentType

public ActiveAnimationComponent> getActiveAnimationComponentType ()

Method getActiveAnimationComponentType.

registerEntity

public EntityRegistration registerEntity (@Nonnull final String id, @Nonnull final Class clazz, final Function entityConstructor, @Nullable final DirectDecodeCodec codec)

Method registerEntity.

Parameters:
@Nonnull final String id
@Nonnull final Class clazz
final Function entityConstructor
@Nullable final DirectDecodeCodec codec

EntityRegistration

public new EntityRegistration (clazz, ()

Method EntityRegistration.

Parameters:
clazz clazz
( (

unregisterEntity

private void unregisterEntity (final Class clazz)

Method unregisterEntity.

Parameters:
final Class clazz

getConstructor

public T> getConstructor (@Nullable final Class entityClass)

Method getConstructor.

Parameters:
@Nullable final Class entityClass

getCodec

public DirectDecodeCodec getCodec (@Nullable final Class entityClass)

Method getCodec.

Parameters:
@Nullable final Class entityClass

getClass

public Entity> getClass (@Nullable final String name)

Method getClass.

Parameters:
@Nullable final String name

getIdentifier

public String getIdentifier (@Nullable final Class entityClass)

Method getIdentifier.

Parameters:
@Nullable final Class entityClass

getComponentType

public T> getComponentType (@Nullable final Class entityClass)

Method getComponentType.

Parameters:
@Nullable final Class entityClass

IllegalArgumentException

public new IllegalArgumentException ("Get player component type via #getPlayerComponentType()

Method IllegalArgumentException.

Parameters:
"Get player component type via #getPlayerComponentType(

isKnown

public boolean isKnown (@Nullable final Entity entity)

Method isKnown.

Parameters:
@Nullable final Entity entity

LegacyEntityHolderSystem

public public LegacyEntityHolderSystem (final ComponentType componentType)

Method LegacyEntityHolderSystem.

Parameters:
final ComponentType componentType

getDependencies

public Set> getDependencies ()

Method getDependencies.

getQuery

public Query getQuery ()

Method getQuery.

onEntityAdd

public void onEntityAdd (@Nonnull final Holder holder, @Nonnull final AddReason reason, @Nonnull final Store store)

Method onEntityAdd.

Parameters:
@Nonnull final Holder holder
@Nonnull final AddReason reason
@Nonnull final Store store

NetworkId

public new NetworkId (entityComponent.getNetworkId()

Method NetworkId.

Parameters:
entityComponent.getNetworkId( entityComponent.getNetworkId(

DisplayNameComponent

public new DisplayNameComponent (Message.raw(displayName)

Method DisplayNameComponent.

Parameters:
Message.raw(displayName Message.raw(displayName

onEntityRemoved

public void onEntityRemoved (@Nonnull final Holder holder, @Nonnull final RemoveReason reason, @Nonnull final Store store)

Method onEntityRemoved.

Parameters:
@Nonnull final Holder holder
@Nonnull final RemoveReason reason
@Nonnull final Store store

toString

public String toString ()

Method toString.

LegacyEntityRefSystem

public public LegacyEntityRefSystem (final ComponentType componentType)

Method LegacyEntityRefSystem.

Parameters:
final ComponentType componentType

onEntityAdded

public void onEntityAdded (@Nonnull final Ref ref, @Nonnull final AddReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onEntityAdded.

Parameters:
@Nonnull final Ref ref
@Nonnull final AddReason reason
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

onEntityRemove

public void onEntityRemove (@Nonnull final Ref ref, @Nonnull final RemoveReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onEntityRemove.

Parameters:
@Nonnull final Ref ref
@Nonnull final RemoveReason reason
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

HiddenFromPlayerMigrationSystem

public public HiddenFromPlayerMigrationSystem (final Query query)

Method HiddenFromPlayerMigrationSystem.

Parameters:
final Query query

SystemDependency

public new SystemDependency (Order.BEFORE, (Class)

Method SystemDependency.

Parameters:
Order.BEFORE Order.BEFORE
(Class (Class

UUIDComponent

public new UUIDComponent (legacyUuid)

Method UUIDComponent.

Parameters:
legacyUuid legacyUuid

componentType

public UUIDComponent> componentType ()

Method componentType.

onComponentAdded

public void onComponentAdded (@Nonnull final Ref ref, @Nonnull final UUIDComponent component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onComponentAdded.

Parameters:
@Nonnull final Ref ref
@Nonnull final UUIDComponent component
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

onComponentSet

public 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 Ref ref
final UUIDComponent oldComponent
@Nonnull final UUIDComponent newComponent
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

onComponentRemoved

public void onComponentRemoved (@Nonnull final Ref ref, @Nonnull final UUIDComponent component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onComponentRemoved.

Parameters:
@Nonnull final Ref ref
@Nonnull final UUIDComponent component
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer