Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- get()
- doMouseInteraction(Ref, ComponentAccessor, MouseInteraction, Player, PlayerRef)
- getChainingDataComponent()
- getChapterRewardsPromptComponent()
- getChapterRewardsSoundPlayedComponent()
- getInteractionsComponentType()
- getInteractionManagerComponent()
- getInteractionHostComponentType()
- getPlacedByComponentType()
- getCarriedBlockComponentType()
- getCarriedBlockQueueResourceType()
- getBlockCounterResourceType()
- getTrackedPlacementComponentType()
Class InteractionModule
java.lang.Object
com.hypixel.hytale.server.core.plugin.PluginBase
com.hypixel.hytale.server.core.plugin.JavaPlugin
com.hypixel.hytale.server.core.modules.interaction.InteractionModule
- All Implemented Interfaces:
CommandOwner
- Since:
- 4/4/17.
- Version:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EnumCodec<InteractionType> static final SetCodec<InteractionType, EnumSet<InteractionType>> static final PluginManifestFields inherited from class PluginBase
METRICS_REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoMouseInteraction(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor, MouseInteraction packet, Player playerComponent, PlayerRef playerRefComponent) Called to handle an incoming mouse interaction packet from the provided client,static InteractionModuleget()Methods inherited from class JavaPlugin
getClassLoader, getFile, getTypeMethods inherited from class PluginBase
getAssetRegistry, getBasePermission, getChunkStoreRegistry, getClientFeatureRegistry, getCodecRegistry, getCodecRegistry, getCodecRegistry, getCommandRegistry, getDataDirectory, getEntityRegistry, getEntityStoreRegistry, getEventRegistry, getIdentifier, getLogger, getManifest, getName, getState, getTaskRegistry, isDisabled, isEnabled, preLoad
-
Field Details
-
MANIFEST
-
INTERACTION_TYPE_CODEC
-
INTERACTION_TYPE_SET_CODEC
@Nonnull public static final SetCodec<InteractionType, EnumSet<InteractionType>> INTERACTION_TYPE_SET_CODEC
-
-
Constructor Details
-
InteractionModule
-
-
Method Details
-
get
- Returns:
- the static
InteractionModuleinstance
-
doMouseInteraction
public void doMouseInteraction(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor, @Nonnull MouseInteraction packet, @Nonnull Player playerComponent, @Nonnull PlayerRef playerRefComponent) Called to handle an incoming mouse interaction packet from the provided client,- Parameters:
ref- The entity reference of the sending player entity.componentAccessor- The associatedComponentAccessor<EntityStore>instance.packet- TheMouseInteractionpacket instance that was received.playerComponent- ThePlayercomponent instance of the sending player entity.playerRefComponent- ThePlayerRefcomponent instance of the sending player entity.
-
getChainingDataComponent
- Returns:
- the component type for the
ChainingInteraction.Datacomponent.
-
getChapterRewardsPromptComponent
@Nonnull public ComponentType<EntityStore, OpenChapterRewardsInteraction.ChapterRewardsPrompt> getChapterRewardsPromptComponent()- Returns:
- the component type for the
OpenChapterRewardsInteraction.ChapterRewardsPromptcomponent.
-
getChapterRewardsSoundPlayedComponent
@Nonnull public ComponentType<EntityStore, OpenChapterRewardsInteraction.ChapterRewardsSoundPlayed> getChapterRewardsSoundPlayedComponent()- Returns:
- the component type for the
OpenChapterRewardsInteraction.ChapterRewardsSoundPlayedcomponent.
-
getInteractionsComponentType
- Returns:
- the component for the
Interactionscomponent.
-
getInteractionManagerComponent
- Returns:
- the component for the
InteractionManagercomponent.
-
getInteractionHostComponentType
- Returns:
- the component type for the
InteractionHostcomponent.
-
getPlacedByComponentType
- Returns:
- the component for the
PlacedByInteractionComponentcomponent.
-
getCarriedBlockComponentType
- Returns:
- the component type for the transient
CarriedBlockcomponent.
-
getCarriedBlockQueueResourceType
@Nonnull public ResourceType<EntityStore, CarriedBlockSystems.QueueResource> getCarriedBlockQueueResourceType()- Returns:
- the resource type tracking entities whose
CarriedBlockchanged this tick.
-
getBlockCounterResourceType
-
getTrackedPlacementComponentType
-