public class LegacyProjectileSystems
Class LegacyProjectileSystems. Provides legacyprojectilesystems functionality for the Hytale server.
java.lang.Object > LegacyProjectileSystems
Field Summary
projectileComponent
final
ProjectileComponent
projectileComponent
Field projectileComponent.
modelAsset
final
ModelAsset
modelAsset
Field modelAsset.
model
final
Model
model
Field model.
projectileAsset
final
Projectile
projectileAsset
Field projectileAsset.
transformComponent
final
TransformComponent
transformComponent
Field transformComponent.
velocityComponent
final
Velocity
velocityComponent
Field velocityComponent.
boundingBox
final
BoundingBox
boundingBox
Field boundingBox.
ref
final
Ref
ref
Field ref.
world
final
World
world
Field world.
Method Detail
onEntityAdded
public
void
onEntityAdded
(@NonNullDecl final Ref ref, @NonNullDecl final AddReason reason, @NonNullDecl final Store store, @NonNullDecl final CommandBuffer commandBuffer)
Method onEntityAdded.
- Parameters:
@NonNullDecl final Refref@NonNullDecl final AddReasonreason@NonNullDecl final Storestore@NonNullDecl final CommandBuffercommandBuffer
onEntityRemove
public
void
onEntityRemove
(@NonNullDecl final Ref ref, @NonNullDecl final RemoveReason reason, @NonNullDecl final Store store, @NonNullDecl final CommandBuffer commandBuffer)
Method onEntityRemove.
- Parameters:
@NonNullDecl final Refref@NonNullDecl final RemoveReasonreason@NonNullDecl final Storestore@NonNullDecl final CommandBuffercommandBuffer
onEntityAdd
public
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
public
new
NetworkId
(store.getExternalData()
Method NetworkId.
- Parameters:
store.getExternalData(store.getExternalData(
ModelComponent
public
new
ModelComponent
(model)
Method ModelComponent.
- Parameters:
modelmodel
PersistentModel
public
new
PersistentModel
(model.toReference()
Method PersistentModel.
- Parameters:
model.toReference(model.toReference(
BoundingBox
public
new
BoundingBox
(model.getBoundingBox()
Method BoundingBox.
- Parameters:
model.getBoundingBox(model.getBoundingBox(
onEntityRemoved
public
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
TickingSystem
public
public
TickingSystem
(@Nonnull final ComponentType projectileComponentType, @Nonnull final ComponentType transformComponentType, @Nonnull final ComponentType velocityComponentType, @Nonnull final ComponentType boundingBoxComponentType)
Method TickingSystem.
- Parameters:
@Nonnull final ComponentTypeprojectileComponentType@Nonnull final ComponentTypetransformComponentType@Nonnull final ComponentTypevelocityComponentType@Nonnull final ComponentTypeboundingBoxComponentType
tick
public
void
tick
(final float dt, final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method tick.
- Parameters:
final floatdtfinal intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer