Class RoleChangeSystem
java.lang.Object
com.hypixel.hytale.component.system.System<EntityStore>
com.hypixel.hytale.component.system.tick.TickingSystem<EntityStore>
com.hypixel.hytale.server.npc.systems.RoleChangeSystem
- All Implemented Interfaces:
ISystem<EntityStore>,TickableSystem<EntityStore>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ComponentType<EntityStore, BeaconSupport> private final Set<Dependency<EntityStore>> private static final com.hypixel.hytale.logger.HytaleLoggerprivate final ComponentType<EntityStore, NPCBlockEventSupport> private final ComponentType<EntityStore, NPCEntityEventSupport> private final ComponentType<EntityStore, PlayerBlockEventSupport> private final ComponentType<EntityStore, PlayerEntityEventSupport> private final ResourceType<EntityStore, RoleChangeSystem.RoleChangeQueue> private final ComponentType<EntityStore, StateEvaluator> private final ComponentType<EntityStore, Timers> private final ComponentType<EntityStore, ValueStore> Fields inherited from interface com.hypixel.hytale.component.system.ISystem
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionRoleChangeSystem(ResourceType<EntityStore, RoleChangeSystem.RoleChangeQueue> roleChangeQueueResourceType, ComponentType<EntityStore, BeaconSupport> beaconSupportComponentType, ComponentType<EntityStore, PlayerBlockEventSupport> playerBlockEventSupportComponentType, ComponentType<EntityStore, NPCBlockEventSupport> npcBlockEventSupportComponentType, ComponentType<EntityStore, PlayerEntityEventSupport> playerEntityEventSupportComponentType, ComponentType<EntityStore, NPCEntityEventSupport> npcEntityEventSupportComponentType, ComponentType<EntityStore, Timers> timersComponentType, ComponentType<EntityStore, StateEvaluator> stateEvaluatorComponentType, ComponentType<EntityStore, ValueStore> valueStoreComponentType) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidrequestRoleChange(Ref<EntityStore> ref, Role role, int roleIndex, boolean changeAppearance, Store<EntityStore> store) static voidrequestRoleChange(Ref<EntityStore> ref, Role role, int roleIndex, boolean changeAppearance, String state, String subState, ComponentAccessor<EntityStore> store) voidtick(float dt, int systemIndex, Store<EntityStore> store) Methods inherited from class com.hypixel.hytale.component.system.System
getComponentRegistrations, getResourceRegistrations, registerComponent, registerComponent, registerComponent, registerResource, registerResourceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.system.ISystem
getGroup, onSystemRegistered, onSystemUnregistered
-
Field Details
-
LOGGER
@Nonnull private static final com.hypixel.hytale.logger.HytaleLogger LOGGER -
roleChangeQueueResourceType
@Nonnull private final ResourceType<EntityStore,RoleChangeSystem.RoleChangeQueue> roleChangeQueueResourceType -
beaconSupportComponentType
-
playerBlockEventSupportComponentType
@Nonnull private final ComponentType<EntityStore,PlayerBlockEventSupport> playerBlockEventSupportComponentType -
npcBlockEventSupportComponentType
@Nonnull private final ComponentType<EntityStore,NPCBlockEventSupport> npcBlockEventSupportComponentType -
playerEntityEventSupportComponentType
@Nonnull private final ComponentType<EntityStore,PlayerEntityEventSupport> playerEntityEventSupportComponentType -
npcEntityEventSupportComponentType
@Nonnull private final ComponentType<EntityStore,NPCEntityEventSupport> npcEntityEventSupportComponentType -
timersComponentType
-
stateEvaluatorComponentType
-
valueStoreComponentType
-
dependencies
-
-
Constructor Details
-
RoleChangeSystem
public RoleChangeSystem(@Nonnull ResourceType<EntityStore, RoleChangeSystem.RoleChangeQueue> roleChangeQueueResourceType, @Nonnull ComponentType<EntityStore, BeaconSupport> beaconSupportComponentType, @Nonnull ComponentType<EntityStore, PlayerBlockEventSupport> playerBlockEventSupportComponentType, @Nonnull ComponentType<EntityStore, NPCBlockEventSupport> npcBlockEventSupportComponentType, @Nonnull ComponentType<EntityStore, PlayerEntityEventSupport> playerEntityEventSupportComponentType, @Nonnull ComponentType<EntityStore, NPCEntityEventSupport> npcEntityEventSupportComponentType, @Nonnull ComponentType<EntityStore, Timers> timersComponentType, @Nonnull ComponentType<EntityStore, StateEvaluator> stateEvaluatorComponentType, @Nonnull ComponentType<EntityStore, ValueStore> valueStoreComponentType)
-
-
Method Details
-
getDependencies
-
tick
- Specified by:
tickin interfaceTickableSystem<EntityStore>- Specified by:
tickin classTickingSystem<EntityStore>
-
requestRoleChange
public static void requestRoleChange(@Nonnull Ref<EntityStore> ref, @Nonnull Role role, int roleIndex, boolean changeAppearance, @Nonnull Store<EntityStore> store) -
requestRoleChange
public static void requestRoleChange(@Nonnull Ref<EntityStore> ref, @Nonnull Role role, int roleIndex, boolean changeAppearance, @Nullable String state, @Nullable String subState, @Nonnull ComponentAccessor<EntityStore> store)
-