Class ListenerUtils

java.lang.Object
sawfowl.regionguard.utils.ListenerUtils

public class ListenerUtils extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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)
     
    static List<String>
    flagBlockArgs(org.spongepowered.api.block.BlockSnapshot snapshot)
     
    static List<String>
    flagBlockArgs(org.spongepowered.api.block.BlockState snapshot)
     
    static List<String>
    flagBlocksArgs(List<org.spongepowered.api.block.BlockSnapshot> snapshots)
     
    static List<String>
    flagDamageSourceArgs(org.spongepowered.api.event.cause.entity.damage.source.DamageSource damageSource)
     
    static List<String>
    flagEntitiesArgs(List<org.spongepowered.api.entity.Entity> entities)
     
    static List<String>
    flagEntityArgs(org.spongepowered.api.entity.Entity entity)
     
    static List<String>
    flagItemArgs(org.spongepowered.api.item.inventory.ItemStack itemStack)
     
    static List<String>
    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
    isDecay(List<org.spongepowered.api.block.transaction.BlockTransaction> transactions)
     
    static boolean
    isDestructBlock(List<org.spongepowered.api.block.transaction.BlockTransaction> transactions)
     
    static boolean
     
    static boolean
    isGrowth(List<org.spongepowered.api.block.transaction.BlockTransaction> transactions)
     
    static boolean
    isLiquidFlow(List<org.spongepowered.api.block.transaction.BlockTransaction> transactions)
     
    static boolean
    isModify(List<org.spongepowered.api.block.transaction.BlockTransaction> transactions)
     
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ListenerUtils

      public ListenerUtils()
  • Method Details

    • entityId

      public static String entityId(org.spongepowered.api.entity.Entity entity)
    • entityCategory

      public static String entityCategory(org.spongepowered.api.entity.Entity entity)
    • blockID

      public static String blockID(org.spongepowered.api.block.BlockSnapshot block)
    • blockID

      public static String blockID(org.spongepowered.api.block.BlockState block)
    • damageTypeId

      public static String damageTypeId(org.spongepowered.api.event.cause.entity.damage.DamageType damageType)
    • itemId

      public static String itemId(org.spongepowered.api.item.inventory.ItemStack itemStack)
    • itemId

      public static String itemId(org.spongepowered.api.item.inventory.ItemStackSnapshot itemStack)
    • 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

      public static Optional<org.spongepowered.api.block.transaction.BlockTransaction> pistonMovedTransaction(List<org.spongepowered.api.block.transaction.BlockTransaction> transactions)
    • flagEntityArgs

      public static List<String> flagEntityArgs(org.spongepowered.api.entity.Entity entity)
    • flagEntitiesArgs

      public static List<String> flagEntitiesArgs(List<org.spongepowered.api.entity.Entity> entities)
    • flagItemsSnapshotsArgs

      public static List<String> flagItemsSnapshotsArgs(List<org.spongepowered.api.item.inventory.ItemStackSnapshot> snapshots)
    • flagItemArgs

      public static List<String> flagItemArgs(org.spongepowered.api.item.inventory.ItemStack itemStack)
    • flagDamageSourceArgs

      public static List<String> flagDamageSourceArgs(org.spongepowered.api.event.cause.entity.damage.source.DamageSource damageSource)
    • flagBlockArgs

      public static List<String> flagBlockArgs(org.spongepowered.api.block.BlockSnapshot snapshot)
    • flagBlocksArgs

      public static List<String> flagBlocksArgs(List<org.spongepowered.api.block.BlockSnapshot> snapshots)
    • flagBlockArgs

      public static List<String> flagBlockArgs(org.spongepowered.api.block.BlockState snapshot)
    • 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

      public static boolean isExplosion(Object object)
    • getLiquidFlowLevel

      public static int getLiquidFlowLevel(org.spongepowered.api.block.transaction.BlockTransaction transaction)