Uses of Record Class
net.minecraft.world.level.gameevent.GameEvent
Packages that use GameEvent
Package
Description
-
Uses of GameEvent in net.minecraft.client.multiplayer
Method parameters in net.minecraft.client.multiplayer with type arguments of type GameEventModifier and TypeMethodDescriptionvoid
ClientLevel.gameEvent
(Holder<GameEvent> gameEvent, Vec3 pos, GameEvent.Context context) -
Uses of GameEvent in net.minecraft.client.renderer.debug
Fields in net.minecraft.client.renderer.debug with type parameters of type GameEventModifier and TypeFieldDescriptionprivate final ResourceKey
<GameEvent> GameEventListenerRenderer.TrackedGameEvent.gameEvent
The field for thegameEvent
record component.Methods in net.minecraft.client.renderer.debug that return types with arguments of type GameEventModifier and TypeMethodDescriptionGameEventListenerRenderer.TrackedGameEvent.gameEvent()
Returns the value of thegameEvent
record component.Method parameters in net.minecraft.client.renderer.debug with type arguments of type GameEventModifier and TypeMethodDescriptionboolean
GameEventListenerRenderer.TrackedListener.handleGameEvent
(ServerLevel level, Holder<GameEvent> gameEvent, GameEvent.Context context, Vec3 pos) void
GameEventListenerRenderer.trackGameEvent
(ResourceKey<GameEvent> gameEvent, Vec3 position) Constructor parameters in net.minecraft.client.renderer.debug with type arguments of type GameEventModifierConstructorDescription(package private)
TrackedGameEvent
(long timeStamp, ResourceKey<GameEvent> gameEvent, Vec3 position) Creates an instance of aTrackedGameEvent
record class. -
Uses of GameEvent in net.minecraft.core.registries
Fields in net.minecraft.core.registries with type parameters of type GameEventModifier and TypeFieldDescriptionstatic final DefaultedRegistry
<GameEvent> BuiltInRegistries.GAME_EVENT
static final ResourceKey
<Registry<GameEvent>> Registries.GAME_EVENT
-
Uses of GameEvent in net.minecraft.data.tags
Fields in net.minecraft.data.tags with type parameters of type GameEventModifier and TypeFieldDescription(package private) static final List
<ResourceKey<GameEvent>> GameEventTagsProvider.VIBRATIONS_EXCEPT_FLAP
-
Uses of GameEvent in net.minecraft.network.protocol.common.custom
Fields in net.minecraft.network.protocol.common.custom with type parameters of type GameEventModifier and TypeFieldDescriptionprivate final ResourceKey
<GameEvent> GameEventDebugPayload.gameEventType
The field for thegameEventType
record component.Methods in net.minecraft.network.protocol.common.custom that return types with arguments of type GameEventModifier and TypeMethodDescriptionGameEventDebugPayload.gameEventType()
Returns the value of thegameEventType
record component.Constructor parameters in net.minecraft.network.protocol.common.custom with type arguments of type GameEventModifierConstructorDescriptionGameEventDebugPayload
(ResourceKey<GameEvent> gameEventType, Vec3 pos) Creates an instance of aGameEventDebugPayload
record class. -
Uses of GameEvent in net.minecraft.network.protocol.game
Method parameters in net.minecraft.network.protocol.game with type arguments of type GameEventModifier and TypeMethodDescriptionstatic void
DebugPackets.sendGameEventInfo
(Level level, Holder<GameEvent> gameEvent, Vec3 pos) -
Uses of GameEvent in net.minecraft.server.level
Method parameters in net.minecraft.server.level with type arguments of type GameEventModifier and TypeMethodDescriptionvoid
ServerLevel.gameEvent
(Holder<GameEvent> gameEvent, Vec3 pos, GameEvent.Context context) void
WorldGenRegion.gameEvent
(Holder<GameEvent> gameEvent, Vec3 pos, GameEvent.Context context) -
Uses of GameEvent in net.minecraft.tags
Fields in net.minecraft.tags with type parameters of type GameEventModifier and TypeFieldDescriptionGameEventTags.ALLAY_CAN_LISTEN
GameEventTags.IGNORE_VIBRATIONS_SNEAKING
GameEventTags.SHRIEKER_CAN_LISTEN
GameEventTags.VIBRATIONS
GameEventTags.WARDEN_CAN_LISTEN
Methods in net.minecraft.tags that return types with arguments of type GameEvent -
Uses of GameEvent in net.minecraft.world.entity
Method parameters in net.minecraft.world.entity with type arguments of type GameEvent -
Uses of GameEvent in net.minecraft.world.entity.animal.allay
Methods in net.minecraft.world.entity.animal.allay that return types with arguments of type GameEventMethod parameters in net.minecraft.world.entity.animal.allay with type arguments of type GameEventModifier and TypeMethodDescriptionboolean
Allay.VibrationUser.canReceiveVibration
(ServerLevel p_282038_, BlockPos p_283385_, Holder<GameEvent> p_316820_, GameEvent.Context p_282208_) boolean
Allay.JukeboxListener.handleGameEvent
(ServerLevel level, Holder<GameEvent> gameEvent, GameEvent.Context context, Vec3 pos) void
Allay.VibrationUser.onReceiveVibration
(ServerLevel p_281422_, BlockPos p_281449_, Holder<GameEvent> p_316630_, Entity p_281794_, Entity p_281864_, float p_281642_) -
Uses of GameEvent in net.minecraft.world.entity.monster.warden
Methods in net.minecraft.world.entity.monster.warden that return types with arguments of type GameEventMethod parameters in net.minecraft.world.entity.monster.warden with type arguments of type GameEventModifier and TypeMethodDescriptionboolean
Warden.VibrationUser.canReceiveVibration
(ServerLevel p_282574_, BlockPos p_282323_, Holder<GameEvent> p_316784_, GameEvent.Context p_282515_) void
Warden.VibrationUser.onReceiveVibration
(ServerLevel p_281325_, BlockPos p_282386_, Holder<GameEvent> p_316139_, Entity p_281438_, Entity p_282582_, float p_283699_) -
Uses of GameEvent in net.minecraft.world.item.enchantment.effects
Fields in net.minecraft.world.item.enchantment.effects with type parameters of type GameEventModifier and TypeFieldDescriptionReplaceBlock.triggerGameEvent
The field for thetriggerGameEvent
record component.ReplaceDisk.triggerGameEvent
The field for thetriggerGameEvent
record component.SetBlockProperties.triggerGameEvent
The field for thetriggerGameEvent
record component.Methods in net.minecraft.world.item.enchantment.effects that return types with arguments of type GameEventModifier and TypeMethodDescriptionReplaceBlock.triggerGameEvent()
Returns the value of thetriggerGameEvent
record component.ReplaceDisk.triggerGameEvent()
Returns the value of thetriggerGameEvent
record component.SetBlockProperties.triggerGameEvent()
Returns the value of thetriggerGameEvent
record component.Constructor parameters in net.minecraft.world.item.enchantment.effects with type arguments of type GameEventModifierConstructorDescriptionSetBlockProperties
(BlockItemStateProperties properties, Vec3i offset, Optional<Holder<GameEvent>> triggerGameEvent) Creates an instance of aSetBlockProperties
record class. -
Uses of GameEvent in net.minecraft.world.level
Method parameters in net.minecraft.world.level with type arguments of type GameEventModifier and TypeMethodDescriptiondefault void
LevelAccessor.gameEvent
(Holder<GameEvent> gameEvent, BlockPos pos, GameEvent.Context context) void
LevelAccessor.gameEvent
(Holder<GameEvent> gameEvent, Vec3 pos, GameEvent.Context context) default void
LevelAccessor.gameEvent
(ResourceKey<GameEvent> gameEvent, BlockPos pos, GameEvent.Context context) default void
default void
-
Uses of GameEvent in net.minecraft.world.level.block.entity
Methods in net.minecraft.world.level.block.entity that return types with arguments of type GameEventMethod parameters in net.minecraft.world.level.block.entity with type arguments of type GameEventModifier and TypeMethodDescriptionboolean
CalibratedSculkSensorBlockEntity.VibrationUser.canReceiveVibration
(ServerLevel level, BlockPos pos, Holder<GameEvent> gameEvent, GameEvent.Context context) boolean
SculkSensorBlockEntity.VibrationUser.canReceiveVibration
(ServerLevel level, BlockPos pos, Holder<GameEvent> gameEvent, GameEvent.Context context) boolean
SculkShriekerBlockEntity.VibrationUser.canReceiveVibration
(ServerLevel p_281256_, BlockPos p_281528_, Holder<GameEvent> p_316788_, GameEvent.Context p_282914_) boolean
SculkCatalystBlockEntity.CatalystListener.handleGameEvent
(ServerLevel level, Holder<GameEvent> gameEvent, GameEvent.Context context, Vec3 pos) void
SculkSensorBlockEntity.VibrationUser.onReceiveVibration
(ServerLevel level, BlockPos pos, Holder<GameEvent> gameEvent, Entity entity, Entity playerEntity, float distance) void
SculkShriekerBlockEntity.VibrationUser.onReceiveVibration
(ServerLevel p_283372_, BlockPos p_281679_, Holder<GameEvent> p_316155_, Entity p_282286_, Entity p_281384_, float p_283119_) -
Uses of GameEvent in net.minecraft.world.level.gameevent
Fields in net.minecraft.world.level.gameevent with type parameters of type GameEventModifier and TypeFieldDescriptionstatic final Holder.Reference
<GameEvent> GameEvent.BLOCK_ACTIVATE
static final Holder.Reference
<GameEvent> GameEvent.BLOCK_ATTACH
This event is broadcast when a block is attached to another.static final Holder.Reference
<GameEvent> GameEvent.BLOCK_CHANGE
This event is broadcast when a block is changed.static final Holder.Reference
<GameEvent> GameEvent.BLOCK_CLOSE
This event is broadcast when a block such as a door, trap door, or gate is closed.static final Holder.Reference
<GameEvent> GameEvent.BLOCK_DEACTIVATE
static final Holder.Reference
<GameEvent> GameEvent.BLOCK_DESTROY
This event is broadcast when a block is destroyed or picked up by an enderman.static final Holder.Reference
<GameEvent> GameEvent.BLOCK_DETACH
This event is broadcast when a block is detached from another block.static final Holder.Reference
<GameEvent> GameEvent.BLOCK_OPEN
This event is broadcast when a block such as a door, trap door, or gate has been opened.static final Holder.Reference
<GameEvent> GameEvent.BLOCK_PLACE
This event is broadcast when a block is placed in the world.GameEvent.CODEC
static final Holder.Reference
<GameEvent> GameEvent.CONTAINER_CLOSE
This event is broadcast when a block with a storage inventory such as a chest or barrel is closed.static final Holder.Reference
<GameEvent> GameEvent.CONTAINER_OPEN
This event is broadcast when a block with a storage inventory such as a chest or barrel is opened.static final Holder.Reference
<GameEvent> GameEvent.DRINK
static final Holder.Reference
<GameEvent> GameEvent.EAT
This event is broadcast when an entity consumes food.static final Holder.Reference
<GameEvent> GameEvent.ELYTRA_GLIDE
static final Holder.Reference
<GameEvent> GameEvent.ENTITY_ACTION
static final Holder.Reference
<GameEvent> GameEvent.ENTITY_DAMAGE
static final Holder.Reference
<GameEvent> GameEvent.ENTITY_DIE
static final Holder.Reference
<GameEvent> GameEvent.ENTITY_DISMOUNT
static final Holder.Reference
<GameEvent> GameEvent.ENTITY_INTERACT
static final Holder.Reference
<GameEvent> GameEvent.ENTITY_MOUNT
static final Holder.Reference
<GameEvent> GameEvent.ENTITY_PLACE
This event is broadcast when an entity is artificially placed in the world using an item.static final Holder.Reference
<GameEvent> GameEvent.EQUIP
This event is broadcast when an item is equipped to an entity or armor stand.static final Holder.Reference
<GameEvent> GameEvent.EXPLODE
This event is broadcast when an entity such as a creeper, tnt, or a firework explodes.static final Holder.Reference
<GameEvent> GameEvent.FLAP
This event is broadcast when a flying entity such as the ender dragon flaps its wings.static final Holder.Reference
<GameEvent> GameEvent.FLUID_PICKUP
This event is broadcast when a fluid is picked up.static final Holder.Reference
<GameEvent> GameEvent.FLUID_PLACE
This event is broadcast when fluid is placed.GameEvent.ListenerInfo.gameEvent
static final Holder.Reference
<GameEvent> GameEvent.HIT_GROUND
This event is broadcast when an entity falls far enough to take fall damage.static final Holder.Reference
<GameEvent> GameEvent.INSTRUMENT_PLAY
static final Holder.Reference
<GameEvent> GameEvent.ITEM_INTERACT_FINISH
static final Holder.Reference
<GameEvent> GameEvent.ITEM_INTERACT_START
static final Holder.Reference
<GameEvent> GameEvent.JUKEBOX_PLAY
static final Holder.Reference
<GameEvent> GameEvent.JUKEBOX_STOP_PLAY
static final Holder.Reference
<GameEvent> GameEvent.LIGHTNING_STRIKE
This event is broadcast when lightning strikes a block.static final Holder.Reference
<GameEvent> GameEvent.NOTE_BLOCK_PLAY
static final Holder.Reference
<GameEvent> GameEvent.PRIME_FUSE
This event is broadcast when an entity such as a creeper or TNT begins exploding.static final Holder.Reference
<GameEvent> GameEvent.PROJECTILE_LAND
This event is broadcast when a projectile hits something.static final Holder.Reference
<GameEvent> GameEvent.PROJECTILE_SHOOT
This event is broadcast when a projectile is fired.static final Holder.Reference
<GameEvent> GameEvent.RESONATE_1
static final Holder.Reference
<GameEvent> GameEvent.RESONATE_10
static final Holder.Reference
<GameEvent> GameEvent.RESONATE_11
static final Holder.Reference
<GameEvent> GameEvent.RESONATE_12
static final Holder.Reference
<GameEvent> GameEvent.RESONATE_13
static final Holder.Reference
<GameEvent> GameEvent.RESONATE_14
static final Holder.Reference
<GameEvent> GameEvent.RESONATE_15
static final Holder.Reference
<GameEvent> GameEvent.RESONATE_2
static final Holder.Reference
<GameEvent> GameEvent.RESONATE_3
static final Holder.Reference
<GameEvent> GameEvent.RESONATE_4
static final Holder.Reference
<GameEvent> GameEvent.RESONATE_5
static final Holder.Reference
<GameEvent> GameEvent.RESONATE_6
static final Holder.Reference
<GameEvent> GameEvent.RESONATE_7
static final Holder.Reference
<GameEvent> GameEvent.RESONATE_8
static final Holder.Reference
<GameEvent> GameEvent.RESONATE_9
static final Holder.Reference
<GameEvent> GameEvent.SCULK_SENSOR_TENDRILS_CLICKING
static final Holder.Reference
<GameEvent> GameEvent.SHEAR
This event is broadcast when a shear is used.static final Holder.Reference
<GameEvent> GameEvent.SHRIEK
static final Holder.Reference
<GameEvent> GameEvent.SPLASH
This event is broadcast wen an entity splashes in the water.static final Holder.Reference
<GameEvent> GameEvent.STEP
This event is broadcast when an entity moves on the ground.static final Holder.Reference
<GameEvent> GameEvent.SWIM
This event is broadcast as an entity swims around in water.static final Holder.Reference
<GameEvent> GameEvent.TELEPORT
static final Holder.Reference
<GameEvent> GameEvent.UNEQUIP
Methods in net.minecraft.world.level.gameevent that return types with arguments of type GameEventModifier and TypeMethodDescriptionGameEvent.ListenerInfo.gameEvent()
private static Holder.Reference
<GameEvent> private static Holder.Reference
<GameEvent> Method parameters in net.minecraft.world.level.gameevent with type arguments of type GameEventModifier and TypeMethodDescriptionboolean
GameEventListener.handleGameEvent
(ServerLevel level, Holder<GameEvent> gameEvent, GameEvent.Context context, Vec3 pos) void
GameEventDispatcher.post
(Holder<GameEvent> gameEvent, Vec3 pos, GameEvent.Context context) boolean
EuclideanGameEventListenerRegistry.visitInRangeListeners
(Holder<GameEvent> gameEvent, Vec3 pos, GameEvent.Context context, GameEventListenerRegistry.ListenerVisitor visitor) boolean
GameEventListenerRegistry.visitInRangeListeners
(Holder<GameEvent> gameEvent, Vec3 pos, GameEvent.Context context, GameEventListenerRegistry.ListenerVisitor visitor) Constructor parameters in net.minecraft.world.level.gameevent with type arguments of type GameEventModifierConstructorDescriptionListenerInfo
(Holder<GameEvent> gameEvent, Vec3 source, GameEvent.Context context, GameEventListener recipient, Vec3 pos) -
Uses of GameEvent in net.minecraft.world.level.gameevent.vibrations
Fields in net.minecraft.world.level.gameevent.vibrations with type parameters of type GameEventModifier and TypeFieldDescriptionVibrationInfo.gameEvent
The field for thegameEvent
record component.static final List
<ResourceKey<GameEvent>> VibrationSystem.RESONANCE_EVENTS
static final ToIntFunction
<ResourceKey<GameEvent>> VibrationSystem.VIBRATION_FREQUENCY_FOR_EVENT
Deprecated.Methods in net.minecraft.world.level.gameevent.vibrations that return types with arguments of type GameEventModifier and TypeMethodDescriptionVibrationInfo.gameEvent()
Returns the value of thegameEvent
record component.VibrationSystem.User.getListenableEvents()
static ResourceKey
<GameEvent> VibrationSystem.getResonanceEventByFrequency
(int frequency) Method parameters in net.minecraft.world.level.gameevent.vibrations with type arguments of type GameEventModifier and TypeMethodDescriptionboolean
VibrationSystem.User.canReceiveVibration
(ServerLevel level, BlockPos pos, Holder<GameEvent> gameEvent, GameEvent.Context context) void
VibrationSystem.Listener.forceScheduleVibration
(ServerLevel level, Holder<GameEvent> gameEvent, GameEvent.Context context, Vec3 pos) static int
VibrationSystem.getGameEventFrequency
(Holder<GameEvent> gameEvent) static int
VibrationSystem.getGameEventFrequency
(ResourceKey<GameEvent> eventKey) boolean
VibrationSystem.Listener.handleGameEvent
(ServerLevel level, Holder<GameEvent> gameEvent, GameEvent.Context context, Vec3 pos) default boolean
VibrationSystem.User.isValidVibration
(Holder<GameEvent> gameEvent, GameEvent.Context context) void
VibrationSystem.User.onReceiveVibration
(ServerLevel level, BlockPos pos, Holder<GameEvent> gameEvent, Entity entity, Entity playerEntity, float distance) private void
VibrationSystem.Listener.scheduleVibration
(ServerLevel level, VibrationSystem.Data data, Holder<GameEvent> gameEvent, GameEvent.Context context, Vec3 pos, Vec3 sensorPos) Constructor parameters in net.minecraft.world.level.gameevent.vibrations with type arguments of type GameEventModifierConstructorDescriptionVibrationInfo
(Holder<GameEvent> p_316546_, float p_251086_, Vec3 p_250935_, UUID p_316193_, UUID p_316157_) VibrationInfo
(Holder<GameEvent> gameEvent, float distance, Vec3 pos, UUID uuid, UUID projectileOwnerUuid, Entity entity) Creates an instance of aVibrationInfo
record class.VibrationInfo
(Holder<GameEvent> p_316851_, float p_250190_, Vec3 p_251692_, Entity p_316868_) -
Uses of GameEvent in net.neoforged.neoforge.common
Method parameters in net.neoforged.neoforge.common with type arguments of type GameEventModifier and TypeMethodDescriptionstatic boolean
CommonHooks.onVanillaGameEvent
(Level level, Holder<GameEvent> vanillaEvent, Vec3 pos, GameEvent.Context context) -
Uses of GameEvent in net.neoforged.neoforge.event
Fields in net.neoforged.neoforge.event with type parameters of type GameEventMethods in net.neoforged.neoforge.event that return types with arguments of type GameEventConstructor parameters in net.neoforged.neoforge.event with type arguments of type GameEventModifierConstructorDescriptionVanillaGameEvent
(Level level, Holder<GameEvent> vanillaEvent, Vec3 position, GameEvent.Context context) -
Uses of GameEvent in net.neoforged.neoforge.registries.datamaps.builtin
Fields in net.neoforged.neoforge.registries.datamaps.builtin with type parameters of type GameEventModifier and TypeFieldDescriptionstatic final DataMapType
<GameEvent, VibrationFrequency> NeoForgeDataMaps.VIBRATION_FREQUENCIES
The GameEvent data map that replacesVibrationSystem.VIBRATION_FREQUENCY_FOR_EVENT
.
data map
instead.