Contents
Interface OperationFactory
public interface OperationFactory
An interface that represents the factory of an operation, used to instantiate operations for builder tools.
-
Method Summary
Modifier and TypeMethodDescriptioncreate(Ref<EntityStore> ref, Player playerComponent, PlayerRef playerRefComponent, BuilderToolOnUseInteraction interaction, ComponentAccessor<EntityStore> componentAccessor) Called to create a new instance of the tool operation class.
-
Method Details
-
create
@Nonnull ToolOperation create(@Nonnull Ref<EntityStore> ref, @Nonnull Player playerComponent, @Nonnull PlayerRef playerRefComponent, @Nonnull BuilderToolOnUseInteraction interaction, @Nonnull ComponentAccessor<EntityStore> componentAccessor) Called to create a new instance of the tool operation class.- Parameters:
ref- The entity reference of the instigating player entity.playerComponent- The player component of the instigating player entity.playerRefComponent- The player reference component of the instigating player entity.interaction- The interaction packet that we are parsing.componentAccessor- TheComponentAccessorfor component access.- Returns:
- the newly created
ToolOperationinstance from this factory.
-