Class GameEvent

java.lang.Object
net.minecraft.world.event.GameEvent

public class GameEvent extends Object
Mappings:
Namespace Name
official ddc
intermediary net/minecraft/class_5712
named net/minecraft/world/event/GameEvent
  • Field Details

    • BLOCK_ACTIVATE

      public static final GameEvent BLOCK_ACTIVATE
      Mappings:
      Namespace Name Mixin selector
      official a Lddc;a:Lddc;
      intermediary field_28174 Lnet/minecraft/class_5712;field_28174:Lnet/minecraft/class_5712;
      named BLOCK_ACTIVATE Lnet/minecraft/world/event/GameEvent;BLOCK_ACTIVATE:Lnet/minecraft/world/event/GameEvent;
    • BLOCK_ATTACH

      public static final GameEvent BLOCK_ATTACH
      Mappings:
      Namespace Name Mixin selector
      official b Lddc;b:Lddc;
      intermediary field_28172 Lnet/minecraft/class_5712;field_28172:Lnet/minecraft/class_5712;
      named BLOCK_ATTACH Lnet/minecraft/world/event/GameEvent;BLOCK_ATTACH:Lnet/minecraft/world/event/GameEvent;
    • BLOCK_CHANGE

      public static final GameEvent BLOCK_CHANGE
      Mappings:
      Namespace Name Mixin selector
      official c Lddc;c:Lddc;
      intermediary field_28733 Lnet/minecraft/class_5712;field_28733:Lnet/minecraft/class_5712;
      named BLOCK_CHANGE Lnet/minecraft/world/event/GameEvent;BLOCK_CHANGE:Lnet/minecraft/world/event/GameEvent;
    • BLOCK_CLOSE

      public static final GameEvent BLOCK_CLOSE
      Mappings:
      Namespace Name Mixin selector
      official d Lddc;d:Lddc;
      intermediary field_28169 Lnet/minecraft/class_5712;field_28169:Lnet/minecraft/class_5712;
      named BLOCK_CLOSE Lnet/minecraft/world/event/GameEvent;BLOCK_CLOSE:Lnet/minecraft/world/event/GameEvent;
    • BLOCK_DEACTIVATE

      public static final GameEvent BLOCK_DEACTIVATE
      Mappings:
      Namespace Name Mixin selector
      official e Lddc;e:Lddc;
      intermediary field_28175 Lnet/minecraft/class_5712;field_28175:Lnet/minecraft/class_5712;
      named BLOCK_DEACTIVATE Lnet/minecraft/world/event/GameEvent;BLOCK_DEACTIVATE:Lnet/minecraft/world/event/GameEvent;
    • BLOCK_DESTROY

      public static final GameEvent BLOCK_DESTROY
      Mappings:
      Namespace Name Mixin selector
      official f Lddc;f:Lddc;
      intermediary field_28165 Lnet/minecraft/class_5712;field_28165:Lnet/minecraft/class_5712;
      named BLOCK_DESTROY Lnet/minecraft/world/event/GameEvent;BLOCK_DESTROY:Lnet/minecraft/world/event/GameEvent;
    • BLOCK_DETACH

      public static final GameEvent BLOCK_DETACH
      Mappings:
      Namespace Name Mixin selector
      official g Lddc;g:Lddc;
      intermediary field_28173 Lnet/minecraft/class_5712;field_28173:Lnet/minecraft/class_5712;
      named BLOCK_DETACH Lnet/minecraft/world/event/GameEvent;BLOCK_DETACH:Lnet/minecraft/world/event/GameEvent;
    • BLOCK_OPEN

      public static final GameEvent BLOCK_OPEN
      Mappings:
      Namespace Name Mixin selector
      official h Lddc;h:Lddc;
      intermediary field_28168 Lnet/minecraft/class_5712;field_28168:Lnet/minecraft/class_5712;
      named BLOCK_OPEN Lnet/minecraft/world/event/GameEvent;BLOCK_OPEN:Lnet/minecraft/world/event/GameEvent;
    • BLOCK_PLACE

      public static final GameEvent BLOCK_PLACE
      Mappings:
      Namespace Name Mixin selector
      official i Lddc;i:Lddc;
      intermediary field_28164 Lnet/minecraft/class_5712;field_28164:Lnet/minecraft/class_5712;
      named BLOCK_PLACE Lnet/minecraft/world/event/GameEvent;BLOCK_PLACE:Lnet/minecraft/world/event/GameEvent;
    • CONTAINER_CLOSE

      public static final GameEvent CONTAINER_CLOSE
      Mappings:
      Namespace Name Mixin selector
      official j Lddc;j:Lddc;
      intermediary field_28177 Lnet/minecraft/class_5712;field_28177:Lnet/minecraft/class_5712;
      named CONTAINER_CLOSE Lnet/minecraft/world/event/GameEvent;CONTAINER_CLOSE:Lnet/minecraft/world/event/GameEvent;
    • CONTAINER_OPEN

      public static final GameEvent CONTAINER_OPEN
      Mappings:
      Namespace Name Mixin selector
      official k Lddc;k:Lddc;
      intermediary field_28176 Lnet/minecraft/class_5712;field_28176:Lnet/minecraft/class_5712;
      named CONTAINER_OPEN Lnet/minecraft/world/event/GameEvent;CONTAINER_OPEN:Lnet/minecraft/world/event/GameEvent;
    • DISPENSE_FAIL

      public static final GameEvent DISPENSE_FAIL
      Mappings:
      Namespace Name Mixin selector
      official l Lddc;l:Lddc;
      intermediary field_28144 Lnet/minecraft/class_5712;field_28144:Lnet/minecraft/class_5712;
      named DISPENSE_FAIL Lnet/minecraft/world/event/GameEvent;DISPENSE_FAIL:Lnet/minecraft/world/event/GameEvent;
    • DRINK

      public static final GameEvent DRINK
      Mappings:
      Namespace Name Mixin selector
      official m Lddc;m:Lddc;
      intermediary field_28734 Lnet/minecraft/class_5712;field_28734:Lnet/minecraft/class_5712;
      named DRINK Lnet/minecraft/world/event/GameEvent;DRINK:Lnet/minecraft/world/event/GameEvent;
    • EAT

      public static final GameEvent EAT
      Mappings:
      Namespace Name Mixin selector
      official n Lddc;n:Lddc;
      intermediary field_28735 Lnet/minecraft/class_5712;field_28735:Lnet/minecraft/class_5712;
      named EAT Lnet/minecraft/world/event/GameEvent;EAT:Lnet/minecraft/world/event/GameEvent;
    • ELYTRA_GLIDE

      public static final GameEvent ELYTRA_GLIDE
      Mappings:
      Namespace Name Mixin selector
      official o Lddc;o:Lddc;
      intermediary field_28158 Lnet/minecraft/class_5712;field_28158:Lnet/minecraft/class_5712;
      named ELYTRA_GLIDE Lnet/minecraft/world/event/GameEvent;ELYTRA_GLIDE:Lnet/minecraft/world/event/GameEvent;
    • ENTITY_DAMAGE

      public static final GameEvent ENTITY_DAMAGE
      Mappings:
      Namespace Name Mixin selector
      official p Lddc;p:Lddc;
      intermediary field_28736 Lnet/minecraft/class_5712;field_28736:Lnet/minecraft/class_5712;
      named ENTITY_DAMAGE Lnet/minecraft/world/event/GameEvent;ENTITY_DAMAGE:Lnet/minecraft/world/event/GameEvent;
    • ENTITY_DIE

      public static final GameEvent ENTITY_DIE
      Mappings:
      Namespace Name Mixin selector
      official q Lddc;q:Lddc;
      intermediary field_37676 Lnet/minecraft/class_5712;field_37676:Lnet/minecraft/class_5712;
      named ENTITY_DIE Lnet/minecraft/world/event/GameEvent;ENTITY_DIE:Lnet/minecraft/world/event/GameEvent;
    • ENTITY_INTERACT

      public static final GameEvent ENTITY_INTERACT
      Mappings:
      Namespace Name Mixin selector
      official r Lddc;r:Lddc;
      intermediary field_28725 Lnet/minecraft/class_5712;field_28725:Lnet/minecraft/class_5712;
      named ENTITY_INTERACT Lnet/minecraft/world/event/GameEvent;ENTITY_INTERACT:Lnet/minecraft/world/event/GameEvent;
    • ENTITY_PLACE

      public static final GameEvent ENTITY_PLACE
      Mappings:
      Namespace Name Mixin selector
      official s Lddc;s:Lddc;
      intermediary field_28738 Lnet/minecraft/class_5712;field_28738:Lnet/minecraft/class_5712;
      named ENTITY_PLACE Lnet/minecraft/world/event/GameEvent;ENTITY_PLACE:Lnet/minecraft/world/event/GameEvent;
    • ENTITY_ROAR

      public static final GameEvent ENTITY_ROAR
      Mappings:
      Namespace Name Mixin selector
      official t Lddc;t:Lddc;
      intermediary field_28728 Lnet/minecraft/class_5712;field_28728:Lnet/minecraft/class_5712;
      named ENTITY_ROAR Lnet/minecraft/world/event/GameEvent;ENTITY_ROAR:Lnet/minecraft/world/event/GameEvent;
    • ENTITY_SHAKE

      public static final GameEvent ENTITY_SHAKE
      Mappings:
      Namespace Name Mixin selector
      official u Lddc;u:Lddc;
      intermediary field_28180 Lnet/minecraft/class_5712;field_28180:Lnet/minecraft/class_5712;
      named ENTITY_SHAKE Lnet/minecraft/world/event/GameEvent;ENTITY_SHAKE:Lnet/minecraft/world/event/GameEvent;
    • EQUIP

      public static final GameEvent EQUIP
      Mappings:
      Namespace Name Mixin selector
      official v Lddc;v:Lddc;
      intermediary field_28739 Lnet/minecraft/class_5712;field_28739:Lnet/minecraft/class_5712;
      named EQUIP Lnet/minecraft/world/event/GameEvent;EQUIP:Lnet/minecraft/world/event/GameEvent;
    • EXPLODE

      public static final GameEvent EXPLODE
      Mappings:
      Namespace Name Mixin selector
      official w Lddc;w:Lddc;
      intermediary field_28178 Lnet/minecraft/class_5712;field_28178:Lnet/minecraft/class_5712;
      named EXPLODE Lnet/minecraft/world/event/GameEvent;EXPLODE:Lnet/minecraft/world/event/GameEvent;
    • FLAP

      public static final GameEvent FLAP
      Mappings:
      Namespace Name Mixin selector
      official x Lddc;x:Lddc;
      intermediary field_28157 Lnet/minecraft/class_5712;field_28157:Lnet/minecraft/class_5712;
      named FLAP Lnet/minecraft/world/event/GameEvent;FLAP:Lnet/minecraft/world/event/GameEvent;
    • FLUID_PICKUP

      public static final GameEvent FLUID_PICKUP
      Mappings:
      Namespace Name Mixin selector
      official y Lddc;y:Lddc;
      intermediary field_28167 Lnet/minecraft/class_5712;field_28167:Lnet/minecraft/class_5712;
      named FLUID_PICKUP Lnet/minecraft/world/event/GameEvent;FLUID_PICKUP:Lnet/minecraft/world/event/GameEvent;
    • FLUID_PLACE

      public static final GameEvent FLUID_PLACE
      Mappings:
      Namespace Name Mixin selector
      official z Lddc;z:Lddc;
      intermediary field_28166 Lnet/minecraft/class_5712;field_28166:Lnet/minecraft/class_5712;
      named FLUID_PLACE Lnet/minecraft/world/event/GameEvent;FLUID_PLACE:Lnet/minecraft/world/event/GameEvent;
    • HIT_GROUND

      public static final GameEvent HIT_GROUND
      Mappings:
      Namespace Name Mixin selector
      official A Lddc;A:Lddc;
      intermediary field_28159 Lnet/minecraft/class_5712;field_28159:Lnet/minecraft/class_5712;
      named HIT_GROUND Lnet/minecraft/world/event/GameEvent;HIT_GROUND:Lnet/minecraft/world/event/GameEvent;
    • INSTRUMENT_PLAY

      public static final GameEvent INSTRUMENT_PLAY
      Mappings:
      Namespace Name Mixin selector
      official B Lddc;B:Lddc;
      intermediary field_39415 Lnet/minecraft/class_5712;field_39415:Lnet/minecraft/class_5712;
      named INSTRUMENT_PLAY Lnet/minecraft/world/event/GameEvent;INSTRUMENT_PLAY:Lnet/minecraft/world/event/GameEvent;
    • ITEM_INTERACT_FINISH

      public static final GameEvent ITEM_INTERACT_FINISH
      Mappings:
      Namespace Name Mixin selector
      official C Lddc;C:Lddc;
      intermediary field_28146 Lnet/minecraft/class_5712;field_28146:Lnet/minecraft/class_5712;
      named ITEM_INTERACT_FINISH Lnet/minecraft/world/event/GameEvent;ITEM_INTERACT_FINISH:Lnet/minecraft/world/event/GameEvent;
    • ITEM_INTERACT_START

      public static final GameEvent ITEM_INTERACT_START
      Mappings:
      Namespace Name Mixin selector
      official D Lddc;D:Lddc;
      intermediary field_28145 Lnet/minecraft/class_5712;field_28145:Lnet/minecraft/class_5712;
      named ITEM_INTERACT_START Lnet/minecraft/world/event/GameEvent;ITEM_INTERACT_START:Lnet/minecraft/world/event/GameEvent;
    • JUKEBOX_PLAY

      public static final GameEvent JUKEBOX_PLAY
      Mappings:
      Namespace Name Mixin selector
      official E Lddc;E:Lddc;
      intermediary field_39485 Lnet/minecraft/class_5712;field_39485:Lnet/minecraft/class_5712;
      named JUKEBOX_PLAY Lnet/minecraft/world/event/GameEvent;JUKEBOX_PLAY:Lnet/minecraft/world/event/GameEvent;
    • JUKEBOX_STOP_PLAY

      public static final GameEvent JUKEBOX_STOP_PLAY
      Mappings:
      Namespace Name Mixin selector
      official F Lddc;F:Lddc;
      intermediary field_39486 Lnet/minecraft/class_5712;field_39486:Lnet/minecraft/class_5712;
      named JUKEBOX_STOP_PLAY Lnet/minecraft/world/event/GameEvent;JUKEBOX_STOP_PLAY:Lnet/minecraft/world/event/GameEvent;
    • LIGHTNING_STRIKE

      public static final GameEvent LIGHTNING_STRIKE
      Mappings:
      Namespace Name Mixin selector
      official G Lddc;G:Lddc;
      intermediary field_28152 Lnet/minecraft/class_5712;field_28152:Lnet/minecraft/class_5712;
      named LIGHTNING_STRIKE Lnet/minecraft/world/event/GameEvent;LIGHTNING_STRIKE:Lnet/minecraft/world/event/GameEvent;
    • NOTE_BLOCK_PLAY

      public static final GameEvent NOTE_BLOCK_PLAY
      Mappings:
      Namespace Name Mixin selector
      official H Lddc;H:Lddc;
      intermediary field_38425 Lnet/minecraft/class_5712;field_38425:Lnet/minecraft/class_5712;
      named NOTE_BLOCK_PLAY Lnet/minecraft/world/event/GameEvent;NOTE_BLOCK_PLAY:Lnet/minecraft/world/event/GameEvent;
    • PISTON_CONTRACT

      public static final GameEvent PISTON_CONTRACT
      Mappings:
      Namespace Name Mixin selector
      official I Lddc;I:Lddc;
      intermediary field_28148 Lnet/minecraft/class_5712;field_28148:Lnet/minecraft/class_5712;
      named PISTON_CONTRACT Lnet/minecraft/world/event/GameEvent;PISTON_CONTRACT:Lnet/minecraft/world/event/GameEvent;
    • PISTON_EXTEND

      public static final GameEvent PISTON_EXTEND
      Mappings:
      Namespace Name Mixin selector
      official J Lddc;J:Lddc;
      intermediary field_28147 Lnet/minecraft/class_5712;field_28147:Lnet/minecraft/class_5712;
      named PISTON_EXTEND Lnet/minecraft/world/event/GameEvent;PISTON_EXTEND:Lnet/minecraft/world/event/GameEvent;
    • PRIME_FUSE

      public static final GameEvent PRIME_FUSE
      Mappings:
      Namespace Name Mixin selector
      official K Lddc;K:Lddc;
      intermediary field_28727 Lnet/minecraft/class_5712;field_28727:Lnet/minecraft/class_5712;
      named PRIME_FUSE Lnet/minecraft/world/event/GameEvent;PRIME_FUSE:Lnet/minecraft/world/event/GameEvent;
    • PROJECTILE_LAND

      public static final GameEvent PROJECTILE_LAND
      Mappings:
      Namespace Name Mixin selector
      official L Lddc;L:Lddc;
      intermediary field_28162 Lnet/minecraft/class_5712;field_28162:Lnet/minecraft/class_5712;
      named PROJECTILE_LAND Lnet/minecraft/world/event/GameEvent;PROJECTILE_LAND:Lnet/minecraft/world/event/GameEvent;
    • PROJECTILE_SHOOT

      public static final GameEvent PROJECTILE_SHOOT
      Mappings:
      Namespace Name Mixin selector
      official M Lddc;M:Lddc;
      intermediary field_28161 Lnet/minecraft/class_5712;field_28161:Lnet/minecraft/class_5712;
      named PROJECTILE_SHOOT Lnet/minecraft/world/event/GameEvent;PROJECTILE_SHOOT:Lnet/minecraft/world/event/GameEvent;
    • SCULK_SENSOR_TENDRILS_CLICKING

      public static final GameEvent SCULK_SENSOR_TENDRILS_CLICKING
      Mappings:
      Namespace Name Mixin selector
      official N Lddc;N:Lddc;
      intermediary field_38243 Lnet/minecraft/class_5712;field_38243:Lnet/minecraft/class_5712;
      named SCULK_SENSOR_TENDRILS_CLICKING Lnet/minecraft/world/event/GameEvent;SCULK_SENSOR_TENDRILS_CLICKING:Lnet/minecraft/world/event/GameEvent;
    • SHEAR

      public static final GameEvent SHEAR
      Mappings:
      Namespace Name Mixin selector
      official O Lddc;O:Lddc;
      intermediary field_28730 Lnet/minecraft/class_5712;field_28730:Lnet/minecraft/class_5712;
      named SHEAR Lnet/minecraft/world/event/GameEvent;SHEAR:Lnet/minecraft/world/event/GameEvent;
    • SHRIEK

      public static final GameEvent SHRIEK
      Mappings:
      Namespace Name Mixin selector
      official P Lddc;P:Lddc;
      intermediary field_38244 Lnet/minecraft/class_5712;field_38244:Lnet/minecraft/class_5712;
      named SHRIEK Lnet/minecraft/world/event/GameEvent;SHRIEK:Lnet/minecraft/world/event/GameEvent;
    • SPLASH

      public static final GameEvent SPLASH
      Mappings:
      Namespace Name Mixin selector
      official Q Lddc;Q:Lddc;
      intermediary field_28160 Lnet/minecraft/class_5712;field_28160:Lnet/minecraft/class_5712;
      named SPLASH Lnet/minecraft/world/event/GameEvent;SPLASH:Lnet/minecraft/world/event/GameEvent;
    • STEP

      public static final GameEvent STEP
      Mappings:
      Namespace Name Mixin selector
      official R Lddc;R:Lddc;
      intermediary field_28155 Lnet/minecraft/class_5712;field_28155:Lnet/minecraft/class_5712;
      named STEP Lnet/minecraft/world/event/GameEvent;STEP:Lnet/minecraft/world/event/GameEvent;
    • SWIM

      public static final GameEvent SWIM
      Mappings:
      Namespace Name Mixin selector
      official S Lddc;S:Lddc;
      intermediary field_28156 Lnet/minecraft/class_5712;field_28156:Lnet/minecraft/class_5712;
      named SWIM Lnet/minecraft/world/event/GameEvent;SWIM:Lnet/minecraft/world/event/GameEvent;
    • TELEPORT

      public static final GameEvent TELEPORT
      Mappings:
      Namespace Name Mixin selector
      official T Lddc;T:Lddc;
      intermediary field_39446 Lnet/minecraft/class_5712;field_39446:Lnet/minecraft/class_5712;
      named TELEPORT Lnet/minecraft/world/event/GameEvent;TELEPORT:Lnet/minecraft/world/event/GameEvent;
    • DEFAULT_RANGE

      public static final int DEFAULT_RANGE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official U Lddc;U:I
      intermediary field_31449 Lnet/minecraft/class_5712;field_31449:I
      named DEFAULT_RANGE Lnet/minecraft/world/event/GameEvent;DEFAULT_RANGE:I
    • id

      private final String id
      Mappings:
      Namespace Name Mixin selector
      official V Lddc;V:Ljava/lang/String;
      intermediary field_28153 Lnet/minecraft/class_5712;field_28153:Ljava/lang/String;
      named id Lnet/minecraft/world/event/GameEvent;id:Ljava/lang/String;
    • range

      private final int range
      Mappings:
      Namespace Name Mixin selector
      official W Lddc;W:I
      intermediary field_28154 Lnet/minecraft/class_5712;field_28154:I
      named range Lnet/minecraft/world/event/GameEvent;range:I
    • registryEntry

      private final RegistryEntry.Reference<GameEvent> registryEntry
      Mappings:
      Namespace Name Mixin selector
      official X Lddc;X:Lgz$c;
      intermediary field_36412 Lnet/minecraft/class_5712;field_36412:Lnet/minecraft/class_6880$class_6883;
      named registryEntry Lnet/minecraft/world/event/GameEvent;registryEntry:Lnet/minecraft/registry/entry/RegistryEntry$Reference;
  • Constructor Details

    • GameEvent

      public GameEvent(String id, int range)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lddc;<init>(Ljava/lang/String;I)V
      intermediary <init> Lnet/minecraft/class_5712;<init>(Ljava/lang/String;I)V
      named <init> Lnet/minecraft/world/event/GameEvent;<init>(Ljava/lang/String;I)V
  • Method Details

    • getId

      public String getId()
      Mappings:
      Namespace Name Mixin selector
      official a Lddc;a()Ljava/lang/String;
      intermediary method_32938 Lnet/minecraft/class_5712;method_32938()Ljava/lang/String;
      named getId Lnet/minecraft/world/event/GameEvent;getId()Ljava/lang/String;
    • getRange

      public int getRange()
      Mappings:
      Namespace Name Mixin selector
      official b Lddc;b()I
      intermediary method_32941 Lnet/minecraft/class_5712;method_32941()I
      named getRange Lnet/minecraft/world/event/GameEvent;getRange()I
    • register

      private static GameEvent register(String id)
      Mappings:
      Namespace Name Mixin selector
      official a Lddc;a(Ljava/lang/String;)Lddc;
      intermediary method_32939 Lnet/minecraft/class_5712;method_32939(Ljava/lang/String;)Lnet/minecraft/class_5712;
      named register Lnet/minecraft/world/event/GameEvent;register(Ljava/lang/String;)Lnet/minecraft/world/event/GameEvent;
    • register

      private static GameEvent register(String id, int range)
      Mappings:
      Namespace Name Mixin selector
      official a Lddc;a(Ljava/lang/String;I)Lddc;
      intermediary method_32940 Lnet/minecraft/class_5712;method_32940(Ljava/lang/String;I)Lnet/minecraft/class_5712;
      named register Lnet/minecraft/world/event/GameEvent;register(Ljava/lang/String;I)Lnet/minecraft/world/event/GameEvent;
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getRegistryEntry

      @Deprecated public RegistryEntry.Reference<GameEvent> getRegistryEntry()
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      official c Lddc;c()Lgz$c;
      intermediary method_40157 Lnet/minecraft/class_5712;method_40157()Lnet/minecraft/class_6880$class_6883;
      named getRegistryEntry Lnet/minecraft/world/event/GameEvent;getRegistryEntry()Lnet/minecraft/registry/entry/RegistryEntry$Reference;
    • isIn

      public boolean isIn(TagKey<GameEvent> tag)
      Mappings:
      Namespace Name Mixin selector
      official a Lddc;a(Lamr;)Z
      intermediary method_40156 Lnet/minecraft/class_5712;method_40156(Lnet/minecraft/class_6862;)Z
      named isIn Lnet/minecraft/world/event/GameEvent;isIn(Lnet/minecraft/registry/tag/TagKey;)Z