Class BlockEventView
java.lang.Object
com.hypixel.hytale.server.npc.blackboard.view.event.EventView<BlockEventView,BlockEventType,EventNotification>
com.hypixel.hytale.server.npc.blackboard.view.event.block.BlockEventView
- All Implemented Interfaces:
IBlackboardView<BlockEventView>
-
Field Summary
Fields inherited from class com.hypixel.hytale.server.npc.blackboard.view.event.EventView
entityMapsByEventType, entityStoreRegistry, eventRegistry, eventTypes, reusableEventNotification, shutdown, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetUpdatedView(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) voidinitialiseEntity(Ref<EntityStore> ref, NPCEntity npcComponent) voidonEntityBreakBlock(Ref<EntityStore> ref, BreakBlockEvent event) voidonEntityDamageBlock(Ref<EntityStore> ref, DamageBlockEvent event) protected voidonEvent(int senderTypeId, double x, double y, double z, Ref<EntityStore> initiator, Ref<EntityStore> skip, ComponentAccessor<EntityStore> componentAccessor, BlockEventType type) private voidprivate voidprocessDamagedBlock(Ref<EntityStore> initiatorRef, String block, Vector3i position, BlockEventType type) Methods inherited from class com.hypixel.hytale.server.npc.blackboard.view.event.EventView
cleanup, forEach, getSetCount, isOutdated, onWorldRemoved
-
Constructor Details
-
BlockEventView
-
-
Method Details
-
getUpdatedView
public BlockEventView getUpdatedView(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
initialiseEntity
-
onEvent
protected void onEvent(int senderTypeId, double x, double y, double z, Ref<EntityStore> initiator, Ref<EntityStore> skip, @Nonnull ComponentAccessor<EntityStore> componentAccessor, BlockEventType type) - Overrides:
onEventin classEventView<BlockEventView,BlockEventType, EventNotification>
-
onEntityDamageBlock
-
onEntityBreakBlock
-
processDamagedBlock
private void processDamagedBlock(@Nonnull Ref<EntityStore> initiatorRef, String block, @Nonnull Vector3i position, @Nonnull BlockEventType type) -
onPlayerInteraction
-