Interface IAnimatedArchitectureEventFactory
- All Known Implementing Classes:
AnimatedArchitectureEventFactorySpigot
IAnimatedArchitectureEvents.-
Method Summary
Modifier and TypeMethodDescriptiondefault IStructurePrepareDeleteEventcreatePrepareDeleteStructureEvent(Structure structure) Constructs a newIStructurePrepareDeleteEventand assumes it was not deleted by anIPlayer.createPrepareDeleteStructureEvent(Structure structure, @Nullable IPlayer responsible) Constructs a newIStructurePrepareDeleteEvent.default IStructurePrepareCreateEventcreatePrepareStructureCreateEvent(Structure structure) Constructs a newIStructurePrepareCreateEventand assumes it was not created by anIPlayer.createPrepareStructureCreateEvent(Structure structure, @Nullable IPlayer responsible) Constructs a newIStructurePrepareCreateEvent.default IStructureCreatedEventcreateStructureCreatedEvent(Structure preview) Constructs a newIStructureCreatedEventand assumes it was not created by anIPlayer.createStructureCreatedEvent(Structure preview, @Nullable IPlayer responsible) Constructs a newIStructureCreatedEvent.default IStructurePrepareAddOwnerEventcreateStructurePrepareAddOwnerEvent(Structure structure, StructureOwner newOwner) Constructs a newIStructurePrepareAddOwnerEventand assumes it was not added by anIPlayer.createStructurePrepareAddOwnerEvent(Structure structure, StructureOwner newOwner, @Nullable IPlayer responsible) Constructs a newIStructurePrepareAddOwnerEvent.default IStructurePrepareLockChangeEventcreateStructurePrepareLockChangeEvent(Structure structure, boolean newLockStatus) Constructs a newIStructurePrepareLockChangeEventand assumes it was not added by anIPlayer.createStructurePrepareLockChangeEvent(Structure structure, boolean newLockStatus, @Nullable IPlayer responsible) Constructs a newIStructurePrepareLockChangeEvent.createStructurePrepareRemoveOwnerEvent(Structure structure, StructureOwner removedOwner) Constructs a newIStructurePrepareRemoveOwnerEventand assumes the owner was not removed by anIPlayer.createStructurePrepareRemoveOwnerEvent(Structure structure, StructureOwner removedOwner, @Nullable IPlayer responsible) Constructs a newIStructurePrepareRemoveOwnerEvent.createToggleEndEvent(Structure structure, StructureSnapshot snapshot, StructureActionCause cause, StructureActionType actionType, IPlayer responsible, double time, boolean skipAnimation) Constructs aIStructureEventToggleEnd.createTogglePrepareEvent(StructureSnapshot snapshot, StructureActionCause cause, StructureActionType actionType, IPlayer responsible, double time, boolean skipAnimation, Cuboid newCuboid) Constructs aIStructureEventTogglePrepare.createToggleStartEvent(Structure structure, StructureSnapshot structureSnapshot, StructureActionCause cause, StructureActionType actionType, IPlayer responsible, double time, boolean skipAnimation, Cuboid newCuboid) Constructs aIStructureEventToggleStart.
-
Method Details
-
createStructureCreatedEvent
IStructureCreatedEvent createStructureCreatedEvent(Structure preview, @Nullable IPlayer responsible) Constructs a newIStructureCreatedEvent.- Parameters:
preview- The preview of the structure that is to be created.responsible- TheIPlayerresponsible for the action, if a player was responsible for it.
-
createStructureCreatedEvent
Constructs a newIStructureCreatedEventand assumes it was not created by anIPlayer.When the structure is created by an
IPlayer, consider usingcreateStructureCreatedEvent(Structure, IPlayer)instead.- Parameters:
preview- The preview of the structure that is to be created.
-
createPrepareStructureCreateEvent
IStructurePrepareCreateEvent createPrepareStructureCreateEvent(Structure structure, @Nullable IPlayer responsible) Constructs a newIStructurePrepareCreateEvent.- Parameters:
structure- The structure that was created.responsible- TheIPlayerresponsible for the action, if a player was responsible for it.
-
createPrepareStructureCreateEvent
Constructs a newIStructurePrepareCreateEventand assumes it was not created by anIPlayer.When the structure is created by a player, consider using
createPrepareStructureCreateEvent(Structure, IPlayer)instead.- Parameters:
structure- The structure that was created.
-
createPrepareDeleteStructureEvent
IStructurePrepareDeleteEvent createPrepareDeleteStructureEvent(Structure structure, @Nullable IPlayer responsible) Constructs a newIStructurePrepareDeleteEvent. -
createPrepareDeleteStructureEvent
Constructs a newIStructurePrepareDeleteEventand assumes it was not deleted by anIPlayer.When the structure is deleted by a player, consider using
createPrepareDeleteStructureEvent(Structure, IPlayer)instead.- Parameters:
structure- TheStructurethat will be deleted.
-
createStructurePrepareAddOwnerEvent
IStructurePrepareAddOwnerEvent createStructurePrepareAddOwnerEvent(Structure structure, StructureOwner newOwner, @Nullable IPlayer responsible) Constructs a newIStructurePrepareAddOwnerEvent.- Parameters:
structure- The structure to which a new owner is to be added.newOwner- The newStructureOwnerthat is to be added to the structure.responsible- TheIPlayerresponsible for the action, if a player was responsible for it.
-
createStructurePrepareAddOwnerEvent
default IStructurePrepareAddOwnerEvent createStructurePrepareAddOwnerEvent(Structure structure, StructureOwner newOwner) Constructs a newIStructurePrepareAddOwnerEventand assumes it was not added by anIPlayer.If the owner is added by an
IPlayer, consider usingcreateStructurePrepareAddOwnerEvent(Structure, StructureOwner, IPlayer)instead.- Parameters:
structure- The structure to which a new owner is to be added.newOwner- The newStructureOwnerthat is to be added to the structure.
-
createStructurePrepareRemoveOwnerEvent
IStructurePrepareRemoveOwnerEvent createStructurePrepareRemoveOwnerEvent(Structure structure, StructureOwner removedOwner, @Nullable IPlayer responsible) Constructs a newIStructurePrepareRemoveOwnerEvent.- Parameters:
structure- The structure from which an owner will be removed.removedOwner- TheStructureOwnerthat is to be removed from the structure.responsible- TheIPlayerresponsible for the action, if a player was responsible for it.
-
createStructurePrepareRemoveOwnerEvent
default IStructurePrepareRemoveOwnerEvent createStructurePrepareRemoveOwnerEvent(Structure structure, StructureOwner removedOwner) Constructs a newIStructurePrepareRemoveOwnerEventand assumes the owner was not removed by anIPlayer.If the owner is removed by a player, consider using
createStructurePrepareRemoveOwnerEvent(Structure, StructureOwner, IPlayer)instead.- Parameters:
structure- The structure from which an owner will be removed.removedOwner- TheStructureOwnerthat is to be removed from the structure.
-
createStructurePrepareLockChangeEvent
IStructurePrepareLockChangeEvent createStructurePrepareLockChangeEvent(Structure structure, boolean newLockStatus, @Nullable IPlayer responsible) Constructs a newIStructurePrepareLockChangeEvent.- Parameters:
structure- The structure to which the lock status is to be changednewLockStatus- The new locked status of the structure.responsible- TheIPlayerresponsible for the action, if a player was responsible for it.
-
createStructurePrepareLockChangeEvent
default IStructurePrepareLockChangeEvent createStructurePrepareLockChangeEvent(Structure structure, boolean newLockStatus) Constructs a newIStructurePrepareLockChangeEventand assumes it was not added by anIPlayer.If the owner is added by a player, consider using
createStructurePrepareLockChangeEvent(Structure, boolean, IPlayer)instead.- Parameters:
structure- The structure to which the lock status is to be changednewLockStatus- The new locked status of the structure.
-
createTogglePrepareEvent
IStructureEventTogglePrepare createTogglePrepareEvent(StructureSnapshot snapshot, StructureActionCause cause, StructureActionType actionType, IPlayer responsible, double time, boolean skipAnimation, Cuboid newCuboid) Constructs aIStructureEventTogglePrepare.- Parameters:
snapshot- The snapshot of the structure.cause- What caused the action.actionType- The type of action.responsible- Who is responsible for this structure. Either the player who directly toggled it (via a command or the GUI), or the original creator when this data is not available.time- The number of seconds the structure will take to open. Note that there are other factors that affect the total time as well.skipAnimation- If true, the structure will skip the animation and open instantly.newCuboid- TheCuboidrepresenting the area the structure will take up after the toggle.
-
createToggleStartEvent
IStructureEventToggleStart createToggleStartEvent(Structure structure, StructureSnapshot structureSnapshot, StructureActionCause cause, StructureActionType actionType, IPlayer responsible, double time, boolean skipAnimation, Cuboid newCuboid) Constructs aIStructureEventToggleStart.- Parameters:
structure- The structure itself.structureSnapshot- A snapshot of the structure created at the time the toggle action was requested.cause- What caused the action.actionType- The type of action.responsible- Who is responsible for this structure. Either the player who directly toggled it (via a command or the GUI), or the original creator when this data is not available.time- The number of seconds the structure will take to open. Note that there are other factors that affect the total time as well.skipAnimation- If true, the structure will skip the animation and open instantly.newCuboid- TheCuboidrepresenting the area the structure will take up after the toggle.
-
createToggleEndEvent
IStructureEventToggleEnd createToggleEndEvent(Structure structure, StructureSnapshot snapshot, StructureActionCause cause, StructureActionType actionType, IPlayer responsible, double time, boolean skipAnimation) Constructs aIStructureEventToggleEnd.- Parameters:
structure- The structure.snapshot- A snapshot of the structure created when the structure was preparing to toggle.cause- What caused the action.actionType- The type of action.responsible- Who is responsible for this structure. Either the player who directly toggled it (via a command or the GUI), or the original creator when this data is not available.time- The number of seconds the structure will take to open. Note that there are other factors that affect the total time as well.skipAnimation- If true, the structure will skip the animation and open instantly.
-