public class RoleChangeSystem extends TickingSystem
System for handling rolechange mechanics. Systems contain game logic that operates on entities with specific component types.
java.lang.Object > TickingSystem > RoleChangeSystem
Field Summary
roleChangeQueueResource
final
RoleChangeQueue
roleChangeQueueResource
Field roleChangeQueueResource.
requests
final
Deque
requests
Field requests.
request
final
RoleChangeRequest
request
Field request.
holder
final
Holder
holder
Field holder.
npcComponent
final
NPCEntity
npcComponent
Field npcComponent.
role
final
Role
role
Field role.
roleChangeResource
final
RoleChangeQueue
roleChangeResource
Field roleChangeResource.
queue
final
Deque
queue
Field queue.
roleChangeQueue
final
RoleChangeQueue
roleChangeQueue
Field roleChangeQueue.
Method Detail
RoleChangeSystem
public
public
RoleChangeSystem
(@Nonnull final ResourceType roleChangeQueueResourceType, @Nonnull final ComponentType beaconSupportComponentType, @Nonnull final ComponentType playerBlockEventSupportComponentType, @Nonnull final ComponentType npcBlockEventSupportComponentType, @Nonnull final ComponentType playerEntityEventSupportComponentType, @Nonnull final ComponentType npcEntityEventSupportComponentType, @Nonnull final ComponentType timersComponentType, @Nonnull final ComponentType stateEvaluatorComponentType, @Nonnull final ComponentType valueStoreComponentType)
Method RoleChangeSystem.
- Parameters:
@Nonnull final ResourceTyperoleChangeQueueResourceType@Nonnull final ComponentTypebeaconSupportComponentType@Nonnull final ComponentTypeplayerBlockEventSupportComponentType@Nonnull final ComponentTypenpcBlockEventSupportComponentType@Nonnull final ComponentTypeplayerEntityEventSupportComponentType@Nonnull final ComponentTypenpcEntityEventSupportComponentType@Nonnull final ComponentTypetimersComponentType@Nonnull final ComponentTypestateEvaluatorComponentType@Nonnull final ComponentTypevalueStoreComponentType
SystemDependency
public
new
SystemDependency
(Order.AFTER, NewSpawnStartTickingSystem.class)
Method SystemDependency.
- Parameters:
Order.AFTEROrder.AFTERNewSpawnStartTickingSystem.classNewSpawnStartTickingSystem.class
getDependencies
public
Set>
getDependencies
()
Method getDependencies.
requestRoleChange
static
void
requestRoleChange
(@Nonnull final Ref ref, @Nonnull final Role role, final int roleIndex, final boolean changeAppearance, @Nonnull final Store store)
Method requestRoleChange.
- Parameters:
@Nonnull final Refref@Nonnull final Rolerolefinal introleIndexfinal booleanchangeAppearance@Nonnull final Storestore
RoleChangeRequest
public
new
RoleChangeRequest
(ref, roleIndex, changeAppearance, state, subState)
Method RoleChangeRequest.
- Parameters:
refrefroleIndexroleIndexchangeAppearancechangeAppearancestatestatesubStatesubState
RoleChangeQueue
public
public
RoleChangeQueue
()
Method RoleChangeQueue.
getResourceType
public
RoleChangeQueue>
getResourceType
()
Method getResourceType.