RoleBuilderSystem

public class RoleBuilderSystem extends HolderSystem

System for handling rolebuilder mechanics. Systems contain game logic that operates on entities with specific component types.

java.lang.Object > HolderSystem > RoleBuilderSystem

Field Summary

npcComponent

final NPCEntity npcComponent

Field npcComponent.

npcPlugin

final NPCPlugin npcPlugin

Field npcPlugin.

roleName

final String roleName

Field roleName.

builderInfo

final BuilderInfo builderInfo

Field builderInfo.

roleBuilder

final Builder roleBuilder

Field roleBuilder.

builderSupport

final BuilderSupport builderSupport

Field builderSupport.

roleNameMessage

final Message roleNameMessage

Field roleNameMessage.

interactionsComponent

final Interactions interactionsComponent

Field interactionsComponent.

beaconSlotMappings

final Object2IntMap beaconSlotMappings

Field beaconSlotMappings.

beaconSupport

final BeaconSupport beaconSupport

Field beaconSupport.

playerEventSlotMapper

final EventSlotMapper playerEventSlotMapper

Field playerEventSlotMapper.

playerBlockEventSupport

final PlayerBlockEventSupport playerBlockEventSupport

Field playerBlockEventSupport.

npcEventSlotMapper

final EventSlotMapper npcEventSlotMapper

Field npcEventSlotMapper.

npcBlockEventSupport

final NPCBlockEventSupport npcBlockEventSupport

Field npcBlockEventSupport.

type

final BlockEventType type

Field type.

sets

final IntSet sets

Field sets.

playerEventSlotMapper2

final EventSlotMapper playerEventSlotMapper2

Field playerEventSlotMapper2.

playerEntityEventSupport

final PlayerEntityEventSupport playerEntityEventSupport

Field playerEntityEventSupport.

npcEventSlotMapper2

final EventSlotMapper npcEventSlotMapper2

Field npcEventSlotMapper2.

npcEntityEventSupport

final NPCEntityEventSupport npcEntityEventSupport

Field npcEntityEventSupport.

sets2

final IntSet sets2

Field sets2.

timers

final Tickable[] timers

Field timers.

stateEvaluator

final StateEvaluator stateEvaluator

Field stateEvaluator.

valueStoreBuilder

final ValueStore.Builder valueStoreBuilder

Field valueStoreBuilder.

fromPrefab

final boolean fromPrefab

Field fromPrefab.

spawnedOrPrefab

final boolean spawnedOrPrefab

Field spawnedOrPrefab.

modelComponent

final ModelComponent modelComponent

Field modelComponent.

appearance

final String appearance

Field appearance.

modelAsset

final ModelAsset modelAsset

Field modelAsset.

scale

final float scale

Field scale.

scaledModel

final Model scaledModel

Field scaledModel.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

archetype

final Archetype archetype

Field archetype.

Method Detail

RoleBuilderSystem

public public RoleBuilderSystem ()

Method RoleBuilderSystem.

SystemDependency

public new SystemDependency (Order.AFTER, EntityStatsSystems.Setup.class)

Method SystemDependency.

Parameters:
Order.AFTER Order.AFTER
EntityStatsSystems.Setup.class EntityStatsSystems.Setup.class

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

BuilderSupport

public new BuilderSupport (npcPlugin.getBuilderManager()

Method BuilderSupport.

Parameters:
npcPlugin.getBuilderManager( npcPlugin.getBuilderManager(

ExecutionContext

public new ExecutionContext ()

Method ExecutionContext.

DisplayNameComponent

public new DisplayNameComponent (roleNameMessage)

Method DisplayNameComponent.

Parameters:
roleNameMessage roleNameMessage

Timers

public new Timers (timers)

Method Timers.

Parameters:
timers timers

PersistentModel

public new PersistentModel (scaledModel.toReference()

Method PersistentModel.

Parameters:
scaledModel.toReference( scaledModel.toReference(

ModelComponent

public new ModelComponent (scaledModel)

Method ModelComponent.

Parameters:
scaledModel scaledModel

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

fail

private void fail (@Nonnull final Holder holder)

Method fail.

Parameters:
@Nonnull final Holder holder