Class GameEvent

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

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

    • BLOCK_ATTACH

      public static final GameEvent BLOCK_ATTACH
      Mappings:
      Namespace Name Mixin selector
      official a Lclt;a:Lclt;
      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 b Lclt;b:Lclt;
      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 c Lclt;c:Lclt;
      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_DESTROY

      public static final GameEvent BLOCK_DESTROY
      Mappings:
      Namespace Name Mixin selector
      official d Lclt;d:Lclt;
      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 e Lclt;e:Lclt;
      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 f Lclt;f:Lclt;
      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 g Lclt;g:Lclt;
      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;
    • BLOCK_PRESS

      public static final GameEvent BLOCK_PRESS
      Mappings:
      Namespace Name Mixin selector
      official h Lclt;h:Lclt;
      intermediary field_28174 Lnet/minecraft/class_5712;field_28174:Lnet/minecraft/class_5712;
      named BLOCK_PRESS Lnet/minecraft/world/event/GameEvent;BLOCK_PRESS:Lnet/minecraft/world/event/GameEvent;
    • BLOCK_SWITCH

      public static final GameEvent BLOCK_SWITCH
      Mappings:
      Namespace Name Mixin selector
      official i Lclt;i:Lclt;
      intermediary field_28170 Lnet/minecraft/class_5712;field_28170:Lnet/minecraft/class_5712;
      named BLOCK_SWITCH Lnet/minecraft/world/event/GameEvent;BLOCK_SWITCH:Lnet/minecraft/world/event/GameEvent;
    • BLOCK_UNPRESS

      public static final GameEvent BLOCK_UNPRESS
      Mappings:
      Namespace Name Mixin selector
      official j Lclt;j:Lclt;
      intermediary field_28175 Lnet/minecraft/class_5712;field_28175:Lnet/minecraft/class_5712;
      named BLOCK_UNPRESS Lnet/minecraft/world/event/GameEvent;BLOCK_UNPRESS:Lnet/minecraft/world/event/GameEvent;
    • BLOCK_UNSWITCH

      public static final GameEvent BLOCK_UNSWITCH
      Mappings:
      Namespace Name Mixin selector
      official k Lclt;k:Lclt;
      intermediary field_28171 Lnet/minecraft/class_5712;field_28171:Lnet/minecraft/class_5712;
      named BLOCK_UNSWITCH Lnet/minecraft/world/event/GameEvent;BLOCK_UNSWITCH:Lnet/minecraft/world/event/GameEvent;
    • CONTAINER_CLOSE

      public static final GameEvent CONTAINER_CLOSE
      Mappings:
      Namespace Name Mixin selector
      official l Lclt;l:Lclt;
      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 m Lclt;m:Lclt;
      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 n Lclt;n:Lclt;
      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;
    • DRINKING_FINISH

      public static final GameEvent DRINKING_FINISH
      Mappings:
      Namespace Name Mixin selector
      official o Lclt;o:Lclt;
      intermediary field_28734 Lnet/minecraft/class_5712;field_28734:Lnet/minecraft/class_5712;
      named DRINKING_FINISH Lnet/minecraft/world/event/GameEvent;DRINKING_FINISH:Lnet/minecraft/world/event/GameEvent;
    • EAT

      public static final GameEvent EAT
      Mappings:
      Namespace Name Mixin selector
      official p Lclt;p:Lclt;
      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_FREE_FALL

      public static final GameEvent ELYTRA_FREE_FALL
      Mappings:
      Namespace Name Mixin selector
      official q Lclt;q:Lclt;
      intermediary field_28158 Lnet/minecraft/class_5712;field_28158:Lnet/minecraft/class_5712;
      named ELYTRA_FREE_FALL Lnet/minecraft/world/event/GameEvent;ELYTRA_FREE_FALL:Lnet/minecraft/world/event/GameEvent;
    • ENTITY_DAMAGED

      public static final GameEvent ENTITY_DAMAGED
      Mappings:
      Namespace Name Mixin selector
      official r Lclt;r:Lclt;
      intermediary field_28736 Lnet/minecraft/class_5712;field_28736:Lnet/minecraft/class_5712;
      named ENTITY_DAMAGED Lnet/minecraft/world/event/GameEvent;ENTITY_DAMAGED:Lnet/minecraft/world/event/GameEvent;
    • ENTITY_KILLED

      public static final GameEvent ENTITY_KILLED
      Mappings:
      Namespace Name Mixin selector
      official s Lclt;s:Lclt;
      intermediary field_28737 Lnet/minecraft/class_5712;field_28737:Lnet/minecraft/class_5712;
      named ENTITY_KILLED Lnet/minecraft/world/event/GameEvent;ENTITY_KILLED:Lnet/minecraft/world/event/GameEvent;
    • ENTITY_PLACE

      public static final GameEvent ENTITY_PLACE
      Mappings:
      Namespace Name Mixin selector
      official t Lclt;t:Lclt;
      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;
    • EQUIP

      public static final GameEvent EQUIP
      Mappings:
      Namespace Name Mixin selector
      official u Lclt;u:Lclt;
      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 v Lclt;v:Lclt;
      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;
    • FISHING_ROD_CAST

      public static final GameEvent FISHING_ROD_CAST
      Mappings:
      Namespace Name Mixin selector
      official w Lclt;w:Lclt;
      intermediary field_28145 Lnet/minecraft/class_5712;field_28145:Lnet/minecraft/class_5712;
      named FISHING_ROD_CAST Lnet/minecraft/world/event/GameEvent;FISHING_ROD_CAST:Lnet/minecraft/world/event/GameEvent;
    • FISHING_ROD_REEL_IN

      public static final GameEvent FISHING_ROD_REEL_IN
      Mappings:
      Namespace Name Mixin selector
      official x Lclt;x:Lclt;
      intermediary field_28146 Lnet/minecraft/class_5712;field_28146:Lnet/minecraft/class_5712;
      named FISHING_ROD_REEL_IN Lnet/minecraft/world/event/GameEvent;FISHING_ROD_REEL_IN:Lnet/minecraft/world/event/GameEvent;
    • FLAP

      public static final GameEvent FLAP
      Mappings:
      Namespace Name Mixin selector
      official y Lclt;y:Lclt;
      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 z Lclt;z:Lclt;
      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 A Lclt;A:Lclt;
      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 B Lclt;B:Lclt;
      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;
    • MOB_INTERACT

      public static final GameEvent MOB_INTERACT
      Mappings:
      Namespace Name Mixin selector
      official C Lclt;C:Lclt;
      intermediary field_28725 Lnet/minecraft/class_5712;field_28725:Lnet/minecraft/class_5712;
      named MOB_INTERACT Lnet/minecraft/world/event/GameEvent;MOB_INTERACT:Lnet/minecraft/world/event/GameEvent;
    • LIGHTNING_STRIKE

      public static final GameEvent LIGHTNING_STRIKE
      Mappings:
      Namespace Name Mixin selector
      official D Lclt;D:Lclt;
      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;
    • MINECART_MOVING

      public static final GameEvent MINECART_MOVING
      Mappings:
      Namespace Name Mixin selector
      official E Lclt;E:Lclt;
      intermediary field_28726 Lnet/minecraft/class_5712;field_28726:Lnet/minecraft/class_5712;
      named MINECART_MOVING Lnet/minecraft/world/event/GameEvent;MINECART_MOVING:Lnet/minecraft/world/event/GameEvent;
    • PISTON_CONTRACT

      public static final GameEvent PISTON_CONTRACT
      Mappings:
      Namespace Name Mixin selector
      official F Lclt;F:Lclt;
      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 G Lclt;G:Lclt;
      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 H Lclt;H:Lclt;
      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 I Lclt;I:Lclt;
      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 J Lclt;J:Lclt;
      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;
    • RAVAGER_ROAR

      public static final GameEvent RAVAGER_ROAR
      Mappings:
      Namespace Name Mixin selector
      official K Lclt;K:Lclt;
      intermediary field_28728 Lnet/minecraft/class_5712;field_28728:Lnet/minecraft/class_5712;
      named RAVAGER_ROAR Lnet/minecraft/world/event/GameEvent;RAVAGER_ROAR:Lnet/minecraft/world/event/GameEvent;
    • RING_BELL

      public static final GameEvent RING_BELL
      Mappings:
      Namespace Name Mixin selector
      official L Lclt;L:Lclt;
      intermediary field_28729 Lnet/minecraft/class_5712;field_28729:Lnet/minecraft/class_5712;
      named RING_BELL Lnet/minecraft/world/event/GameEvent;RING_BELL:Lnet/minecraft/world/event/GameEvent;
    • SHEAR

      public static final GameEvent SHEAR
      Mappings:
      Namespace Name Mixin selector
      official M Lclt;M:Lclt;
      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;
    • SHULKER_CLOSE

      public static final GameEvent SHULKER_CLOSE
      Mappings:
      Namespace Name Mixin selector
      official N Lclt;N:Lclt;
      intermediary field_28731 Lnet/minecraft/class_5712;field_28731:Lnet/minecraft/class_5712;
      named SHULKER_CLOSE Lnet/minecraft/world/event/GameEvent;SHULKER_CLOSE:Lnet/minecraft/world/event/GameEvent;
    • SHULKER_OPEN

      public static final GameEvent SHULKER_OPEN
      Mappings:
      Namespace Name Mixin selector
      official O Lclt;O:Lclt;
      intermediary field_28732 Lnet/minecraft/class_5712;field_28732:Lnet/minecraft/class_5712;
      named SHULKER_OPEN Lnet/minecraft/world/event/GameEvent;SHULKER_OPEN:Lnet/minecraft/world/event/GameEvent;
    • SPLASH

      public static final GameEvent SPLASH
      Mappings:
      Namespace Name Mixin selector
      official P Lclt;P:Lclt;
      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 Q Lclt;Q:Lclt;
      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 R Lclt;R:Lclt;
      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;
    • WOLF_SHAKING

      public static final GameEvent WOLF_SHAKING
      Mappings:
      Namespace Name Mixin selector
      official S Lclt;S:Lclt;
      intermediary field_28180 Lnet/minecraft/class_5712;field_28180:Lnet/minecraft/class_5712;
      named WOLF_SHAKING Lnet/minecraft/world/event/GameEvent;WOLF_SHAKING:Lnet/minecraft/world/event/GameEvent;
    • id

      private final String id
      Mappings:
      Namespace Name Mixin selector
      official T Lclt;T: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 U Lclt;U:I
      intermediary field_28154 Lnet/minecraft/class_5712;field_28154:I
      named range Lnet/minecraft/world/event/GameEvent;range:I
  • Constructor Details

    • GameEvent

      public GameEvent​(String id, int range)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lclt;<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

      @Environment(CLIENT) public String getId()
      Mappings:
      Namespace Name Mixin selector
      official a Lclt;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 Lclt;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 Lclt;a(Ljava/lang/String;)Lclt;
      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 Lclt;a(Ljava/lang/String;I)Lclt;
      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
      Mappings:
      Namespace Name Mixin selector
      official toString Lclt;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_5712;toString()Ljava/lang/String;
      named toString Lnet/minecraft/world/event/GameEvent;toString()Ljava/lang/String;