Interface RegionChangeBlockEvent.Place
- All Superinterfaces:
org.spongepowered.api.event.Cancellable,org.spongepowered.api.event.Event,RegionChangeBlockEvent,RegionMessageEvent,RegionWorldEvent
- Enclosing interface:
- RegionChangeBlockEvent
public static interface RegionChangeBlockEvent.Place
extends RegionChangeBlockEvent, RegionMessageEvent
-
Nested Class Summary
Nested classes/interfaces inherited from interface sawfowl.regionguard.api.events.world.RegionChangeBlockEvent
RegionChangeBlockEvent.Break, RegionChangeBlockEvent.LiquidFlow, RegionChangeBlockEvent.Place -
Method Summary
Modifier and TypeMethodDescriptionorg.spongepowered.api.block.BlockSnapshotGetting the default replacement snapshot.org.spongepowered.api.block.BlockSnapshotGetting the original snapshot.org.spongepowered.api.block.transaction.BlockTransactionGetting defaultTransactionfor this event.org.spongepowered.api.entity.EntityGet the entity that is the source of the event.Optional<org.spongepowered.api.entity.living.player.server.ServerPlayer>Getting theServerPlayerif he is the cause of the event.List<org.spongepowered.api.block.transaction.BlockTransaction>Getting a list of theTransactions for this event.booleanGetting protect result.Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelledMethods inherited from interface org.spongepowered.api.event.Event
context, sourceMethods inherited from interface sawfowl.regionguard.api.events.world.RegionChangeBlockEvent
cause, getSpongeEventMethods inherited from interface sawfowl.regionguard.api.events.world.RegionMessageEvent
getMessage, setMessageMethods inherited from interface sawfowl.regionguard.api.events.world.RegionWorldEvent
getRegion, getWorld
-
Method Details
-
getEntity
org.spongepowered.api.entity.Entity getEntity()Get the entity that is the source of the event.- Returns:
- entity
-
getPlayer
Optional<org.spongepowered.api.entity.living.player.server.ServerPlayer> getPlayer()Getting theServerPlayerif he is the cause of the event.- Specified by:
getPlayerin interfaceRegionMessageEvent
-
isAllowPlace
boolean isAllowPlace()Getting protect result. -
getTransactions
List<org.spongepowered.api.block.transaction.BlockTransaction> getTransactions()Getting a list of theTransactions for this event. If a transaction is requested to be marked as "invalid",Transaction.setValid(boolean)can be used.- Returns:
- The unmodifiable list of transactions
-
getDefaultTransaction
org.spongepowered.api.block.transaction.BlockTransaction getDefaultTransaction()Getting defaultTransactionfor this event. If a transaction is requested to be marked as "invalid",Transaction.setValid(boolean)can be used.- Returns:
- transaction
-
afterTransaction
org.spongepowered.api.block.BlockSnapshot afterTransaction()Getting the default replacement snapshot.- Returns:
- The default replacement
-
beforeTransaction
org.spongepowered.api.block.BlockSnapshot beforeTransaction()Getting the original snapshot.- Returns:
- The original snapshot
-