Class GameEventMock

java.lang.Object
org.bukkit.GameEvent
be.seeseemelk.mockbukkit.GameEventMock
All Implemented Interfaces:
net.kyori.adventure.key.Keyed, org.bukkit.Keyed

public class GameEventMock extends org.bukkit.GameEvent
  • Field Summary

    Fields inherited from class org.bukkit.GameEvent

    BLOCK_ACTIVATE, BLOCK_ATTACH, BLOCK_CHANGE, BLOCK_CLOSE, BLOCK_DEACTIVATE, BLOCK_DESTROY, BLOCK_DETACH, BLOCK_OPEN, BLOCK_PLACE, BLOCK_PRESS, BLOCK_SWITCH, BLOCK_UNPRESS, BLOCK_UNSWITCH, CONTAINER_CLOSE, CONTAINER_OPEN, DISPENSE_FAIL, DRINK, DRINKING_FINISH, EAT, ELYTRA_FREE_FALL, ELYTRA_GLIDE, ENTITY_ACTION, ENTITY_DAMAGE, ENTITY_DAMAGED, ENTITY_DIE, ENTITY_DISMOUNT, ENTITY_DYING, ENTITY_INTERACT, ENTITY_KILLED, ENTITY_MOUNT, ENTITY_PLACE, ENTITY_ROAR, ENTITY_SHAKE, EQUIP, EXPLODE, FLAP, FLUID_PICKUP, FLUID_PLACE, HIT_GROUND, INSTRUMENT_PLAY, ITEM_INTERACT_FINISH, ITEM_INTERACT_START, JUKEBOX_PLAY, JUKEBOX_STOP_PLAY, LIGHTNING_STRIKE, MOB_INTERACT, NOTE_BLOCK_PLAY, PISTON_CONTRACT, PISTON_EXTEND, PRIME_FUSE, PROJECTILE_LAND, PROJECTILE_SHOOT, RAVAGER_ROAR, RESONATE_1, RESONATE_10, RESONATE_11, RESONATE_12, RESONATE_13, RESONATE_14, RESONATE_15, RESONATE_2, RESONATE_3, RESONATE_4, RESONATE_5, RESONATE_6, RESONATE_7, RESONATE_8, RESONATE_9, RING_BELL, SCULK_SENSOR_TENDRILS_CLICKING, SHEAR, SHRIEK, SHULKER_CLOSE, SHULKER_OPEN, SPLASH, STEP, SWIM, TELEPORT, UNEQUIP, WOLF_SHAKING
  • Constructor Summary

    Constructors
    Constructor
    Description
    GameEventMock(com.google.gson.JsonObject data)
    Deprecated, for removal: This API element is subject to removal in a future version.
    GameEventMock(org.bukkit.NamespacedKey key)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    from(com.google.gson.JsonObject data)
     
    @NotNull org.bukkit.NamespacedKey
     

    Methods inherited from class org.bukkit.GameEvent

    getByKey, values

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.bukkit.Keyed

    key
  • Constructor Details

    • GameEventMock

      public GameEventMock(org.bukkit.NamespacedKey key)
      Parameters:
      key - A namespaced key
    • GameEventMock

      @Deprecated(forRemoval=true) public GameEventMock(com.google.gson.JsonObject data)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      data - Json data
  • Method Details

    • getKey

      @NotNull public @NotNull org.bukkit.NamespacedKey getKey()
    • from

      @Internal public static GameEventMock from(com.google.gson.JsonObject data)