Package sawfowl.regionguard.utils
Class ListenerUtils
java.lang.Object
sawfowl.regionguard.utils.ListenerUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
blockID
(org.spongepowered.api.block.BlockSnapshot block) static String
blockID
(org.spongepowered.api.block.BlockState block) static String
damageTypeId
(org.spongepowered.api.event.cause.entity.damage.DamageType damageType) static String
entityCategory
(org.spongepowered.api.entity.Entity entity) static String
entityId
(org.spongepowered.api.entity.Entity entity) static boolean
findEntity
(org.spongepowered.api.entity.Entity entity) flagBlockArgs
(org.spongepowered.api.block.BlockSnapshot snapshot) flagBlockArgs
(org.spongepowered.api.block.BlockState snapshot) flagBlocksArgs
(List<org.spongepowered.api.block.BlockSnapshot> snapshots) flagDamageSourceArgs
(org.spongepowered.api.event.cause.entity.damage.source.DamageSource damageSource) flagEntitiesArgs
(List<org.spongepowered.api.entity.Entity> entities) flagEntityArgs
(org.spongepowered.api.entity.Entity entity) flagItemArgs
(org.spongepowered.api.item.inventory.ItemStack itemStack) flagItemsSnapshotsArgs
(List<org.spongepowered.api.item.inventory.ItemStackSnapshot> snapshots) static org.spongepowered.api.world.chunk.WorldChunk
getChunk
(org.spongepowered.api.world.server.ServerWorld world, org.spongepowered.math.vector.Vector3i vector3i) static int
getLiquidFlowLevel
(org.spongepowered.api.block.transaction.BlockTransaction transaction) static org.spongepowered.api.block.transaction.BlockTransaction
getTransaction
(List<org.spongepowered.api.block.transaction.BlockTransaction> transactions, org.spongepowered.api.block.transaction.Operation operation) static boolean
isBedBlock
(org.spongepowered.api.block.BlockSnapshot block) static boolean
isContainer
(org.spongepowered.api.block.BlockSnapshot block) static boolean
static boolean
isDestructBlock
(List<org.spongepowered.api.block.transaction.BlockTransaction> transactions) static boolean
isExplosion
(Object object) static boolean
static boolean
isLiquidFlow
(List<org.spongepowered.api.block.transaction.BlockTransaction> transactions) static boolean
static boolean
isPiston
(org.spongepowered.api.block.BlockSnapshot blockSnapshot) static boolean
isPlaceBlock
(List<org.spongepowered.api.block.transaction.BlockTransaction> transactions) static String
itemId
(org.spongepowered.api.item.inventory.ItemStack itemStack) static String
itemId
(org.spongepowered.api.item.inventory.ItemStackSnapshot itemStack) static boolean
nonReplacement
(List<org.spongepowered.api.block.transaction.BlockTransaction> transactions) static boolean
nonReplacement
(org.spongepowered.api.block.transaction.BlockTransaction transaction) static Optional<org.spongepowered.api.block.transaction.BlockTransaction>
pistonMovedTransaction
(List<org.spongepowered.api.block.transaction.BlockTransaction> transactions) static boolean
postEvent
(org.spongepowered.api.event.Event regionEvent)
-
Constructor Details
-
ListenerUtils
public ListenerUtils()
-
-
Method Details
-
entityId
-
entityCategory
-
blockID
-
blockID
-
damageTypeId
public static String damageTypeId(org.spongepowered.api.event.cause.entity.damage.DamageType damageType) -
itemId
-
itemId
-
getTransaction
public static org.spongepowered.api.block.transaction.BlockTransaction getTransaction(List<org.spongepowered.api.block.transaction.BlockTransaction> transactions, org.spongepowered.api.block.transaction.Operation operation) -
pistonMovedTransaction
-
flagEntityArgs
-
flagEntitiesArgs
-
flagItemsSnapshotsArgs
-
flagItemArgs
-
flagDamageSourceArgs
-
flagBlockArgs
-
flagBlocksArgs
-
flagBlockArgs
-
getChunk
public static org.spongepowered.api.world.chunk.WorldChunk getChunk(org.spongepowered.api.world.server.ServerWorld world, org.spongepowered.math.vector.Vector3i vector3i) -
findEntity
public static boolean findEntity(org.spongepowered.api.entity.Entity entity) -
postEvent
public static boolean postEvent(org.spongepowered.api.event.Event regionEvent) -
nonReplacement
public static boolean nonReplacement(List<org.spongepowered.api.block.transaction.BlockTransaction> transactions) -
nonReplacement
public static boolean nonReplacement(org.spongepowered.api.block.transaction.BlockTransaction transaction) -
isContainer
public static boolean isContainer(org.spongepowered.api.block.BlockSnapshot block) -
isBedBlock
public static boolean isBedBlock(org.spongepowered.api.block.BlockSnapshot block) -
isPiston
public static boolean isPiston(org.spongepowered.api.block.BlockSnapshot blockSnapshot) -
isDestructBlock
public static boolean isDestructBlock(List<org.spongepowered.api.block.transaction.BlockTransaction> transactions) -
isPlaceBlock
public static boolean isPlaceBlock(List<org.spongepowered.api.block.transaction.BlockTransaction> transactions) -
isLiquidFlow
public static boolean isLiquidFlow(List<org.spongepowered.api.block.transaction.BlockTransaction> transactions) -
isModify
public static boolean isModify(List<org.spongepowered.api.block.transaction.BlockTransaction> transactions) -
isGrowth
public static boolean isGrowth(List<org.spongepowered.api.block.transaction.BlockTransaction> transactions) -
isDecay
public static boolean isDecay(List<org.spongepowered.api.block.transaction.BlockTransaction> transactions) -
isExplosion
-
getLiquidFlowLevel
public static int getLiquidFlowLevel(org.spongepowered.api.block.transaction.BlockTransaction transaction)
-