Record Class GameEvent
java.lang.Object
java.lang.Record
net.minecraft.world.level.gameevent.GameEvent
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
static final class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final int
static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> private final int
The field for thenotificationRadius
record component.static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> static final Holder.Reference
<GameEvent> -
Constructor Summary
ConstructorDescriptionGameEvent
(int notificationRadius) Creates an instance of aGameEvent
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of thenotificationRadius
record component.private static Holder.Reference
<GameEvent> private static Holder.Reference
<GameEvent> final String
toString()
Returns a string representation of this record class.
-
Field Details
-
notificationRadius
private final int notificationRadiusThe field for thenotificationRadius
record component. -
BLOCK_ACTIVATE
-
BLOCK_ATTACH
-
BLOCK_CHANGE
-
BLOCK_CLOSE
-
BLOCK_DEACTIVATE
-
BLOCK_DESTROY
-
BLOCK_DETACH
-
BLOCK_OPEN
-
BLOCK_PLACE
-
CONTAINER_CLOSE
-
CONTAINER_OPEN
-
DRINK
-
EAT
-
ELYTRA_GLIDE
-
ENTITY_DAMAGE
-
ENTITY_DIE
-
ENTITY_DISMOUNT
-
ENTITY_INTERACT
-
ENTITY_MOUNT
-
ENTITY_PLACE
-
ENTITY_ACTION
-
EQUIP
-
EXPLODE
-
FLAP
-
FLUID_PICKUP
-
FLUID_PLACE
-
HIT_GROUND
-
INSTRUMENT_PLAY
-
ITEM_INTERACT_FINISH
-
ITEM_INTERACT_START
-
JUKEBOX_PLAY
-
JUKEBOX_STOP_PLAY
-
LIGHTNING_STRIKE
-
NOTE_BLOCK_PLAY
-
PRIME_FUSE
-
PROJECTILE_LAND
-
PROJECTILE_SHOOT
-
SCULK_SENSOR_TENDRILS_CLICKING
-
SHEAR
-
SHRIEK
-
SPLASH
-
STEP
-
SWIM
-
TELEPORT
-
UNEQUIP
-
RESONATE_1
-
RESONATE_2
-
RESONATE_3
-
RESONATE_4
-
RESONATE_5
-
RESONATE_6
-
RESONATE_7
-
RESONATE_8
-
RESONATE_9
-
RESONATE_10
-
RESONATE_11
-
RESONATE_12
-
RESONATE_13
-
RESONATE_14
-
RESONATE_15
-
DEFAULT_NOTIFICATION_RADIUS
public static final int DEFAULT_NOTIFICATION_RADIUS- See Also:
-
-
Constructor Details
-
GameEvent
public GameEvent(int notificationRadius) Creates an instance of aGameEvent
record class.- Parameters:
notificationRadius
- the value for thenotificationRadius
record component
-
-
Method Details
-
bootstrap
-
register
-
register
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
notificationRadius
public int notificationRadius()Returns the value of thenotificationRadius
record component.- Returns:
- the value of the
notificationRadius
record component
-