Package sawfowl.regionguard.utils
Class ListenerUtils
java.lang.Object
sawfowl.regionguard.utils.ListenerUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringblockID(org.spongepowered.api.block.BlockSnapshot block) static StringblockID(org.spongepowered.api.block.BlockState block) static StringdamageTypeId(org.spongepowered.api.event.cause.entity.damage.DamageType damageType) static StringentityCategory(org.spongepowered.api.entity.Entity entity) static StringentityId(org.spongepowered.api.entity.Entity entity) static booleanfindEntity(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.WorldChunkgetChunk(org.spongepowered.api.world.server.ServerWorld world, org.spongepowered.math.vector.Vector3i vector3i) static intgetLiquidFlowLevel(org.spongepowered.api.block.transaction.BlockTransaction transaction) static org.spongepowered.api.block.transaction.BlockTransactiongetTransaction(List<org.spongepowered.api.block.transaction.BlockTransaction> transactions, org.spongepowered.api.block.transaction.Operation operation) static booleanisBedBlock(org.spongepowered.api.block.BlockSnapshot block) static booleanisContainer(org.spongepowered.api.block.BlockSnapshot block) static booleanstatic booleanisDestructBlock(List<org.spongepowered.api.block.transaction.BlockTransaction> transactions) static booleanisExplosion(Object object) static booleanstatic booleanisLiquidFlow(List<org.spongepowered.api.block.transaction.BlockTransaction> transactions) static booleanstatic booleanisPiston(org.spongepowered.api.block.BlockSnapshot blockSnapshot) static booleanisPlaceBlock(List<org.spongepowered.api.block.transaction.BlockTransaction> transactions) static StringitemId(org.spongepowered.api.item.inventory.ItemStack itemStack) static StringitemId(org.spongepowered.api.item.inventory.ItemStackSnapshot itemStack) static booleannonReplacement(List<org.spongepowered.api.block.transaction.BlockTransaction> transactions) static booleannonReplacement(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 booleanpostEvent(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)
-