Uses of Record Class
net.minecraft.world.level.gameevent.GameEvent
Package
Description
-
Uses of GameEvent in net.minecraft.client.multiplayer
Modifier and TypeMethodDescriptionvoid
ClientLevel.gameEvent
(Holder<GameEvent> p_316478_, Vec3 p_233640_, GameEvent.Context p_233641_) -
Uses of GameEvent in net.minecraft.client.renderer.debug
Modifier and TypeFieldDescriptionprivate final ResourceKey
<GameEvent> GameEventListenerRenderer.TrackedGameEvent.gameEvent
The field for thegameEvent
record component.Modifier and TypeMethodDescriptionGameEventListenerRenderer.TrackedGameEvent.gameEvent()
Returns the value of thegameEvent
record component.Modifier and TypeMethodDescriptionboolean
GameEventListenerRenderer.TrackedListener.handleGameEvent
(ServerLevel p_234540_, Holder<GameEvent> p_316503_, GameEvent.Context p_250285_, Vec3 p_250758_) void
GameEventListenerRenderer.trackGameEvent
(ResourceKey<GameEvent> p_294637_, Vec3 p_234515_) ModifierConstructorDescription(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
Modifier and TypeFieldDescriptionstatic final DefaultedRegistry
<GameEvent> BuiltInRegistries.GAME_EVENT
static final ResourceKey
<Registry<GameEvent>> Registries.GAME_EVENT
-
Uses of GameEvent in net.minecraft.data.tags
Modifier and TypeFieldDescription(package private) static final List
<ResourceKey<GameEvent>> GameEventTagsProvider.VIBRATIONS_EXCEPT_FLAP
-
Uses of GameEvent in net.minecraft.network.protocol.common.custom
Modifier and TypeFieldDescriptionprivate final ResourceKey
<GameEvent> GameEventDebugPayload.gameEventType
The field for thegameEventType
record component.Modifier and TypeMethodDescriptionGameEventDebugPayload.gameEventType()
Returns the value of thegameEventType
record component.ModifierConstructorDescriptionGameEventDebugPayload
(ResourceKey<GameEvent> gameEventType, Vec3 pos) Creates an instance of aGameEventDebugPayload
record class. -
Uses of GameEvent in net.minecraft.network.protocol.game
Modifier and TypeMethodDescriptionstatic void
DebugPackets.sendGameEventInfo
(Level p_237888_, Holder<GameEvent> p_316607_, Vec3 p_237890_) -
Uses of GameEvent in net.minecraft.server.level
Modifier and TypeMethodDescriptionvoid
ServerLevel.gameEvent
(Holder<GameEvent> p_316597_, Vec3 p_215042_, GameEvent.Context p_215043_) void
WorldGenRegion.gameEvent
(Holder<GameEvent> p_316792_, Vec3 p_215164_, GameEvent.Context p_215165_) -
Uses of GameEvent in net.minecraft.tags
Modifier and TypeFieldDescriptionGameEventTags.ALLAY_CAN_LISTEN
GameEventTags.IGNORE_VIBRATIONS_SNEAKING
GameEventTags.SHRIEKER_CAN_LISTEN
GameEventTags.VIBRATIONS
GameEventTags.WARDEN_CAN_LISTEN
-
Uses of GameEvent in net.minecraft.world.entity
-
Uses of GameEvent in net.minecraft.world.entity.animal.allay
Modifier and TypeMethodDescriptionboolean
Allay.VibrationUser.canReceiveVibration
(ServerLevel p_282038_, BlockPos p_283385_, Holder<GameEvent> p_316820_, GameEvent.Context p_282208_) boolean
Allay.JukeboxListener.handleGameEvent
(ServerLevel p_250009_, Holder<GameEvent> p_316687_, GameEvent.Context p_249478_, Vec3 p_250852_) 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
Modifier 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.level
Modifier and TypeMethodDescriptiondefault void
LevelAccessor.gameEvent
(Holder<GameEvent> p_316320_, BlockPos p_220409_, GameEvent.Context p_220410_) void
LevelAccessor.gameEvent
(Holder<GameEvent> p_316267_, Vec3 p_220405_, GameEvent.Context p_220406_) default void
LevelAccessor.gameEvent
(ResourceKey<GameEvent> p_316780_, BlockPos p_316509_, GameEvent.Context p_316524_) default void
default void
-
Uses of GameEvent in net.minecraft.world.level.block.entity
Modifier and TypeMethodDescriptionboolean
CalibratedSculkSensorBlockEntity.VibrationUser.canReceiveVibration
(ServerLevel p_282061_, BlockPos p_282550_, Holder<GameEvent> p_316545_, GameEvent.Context p_281456_) boolean
SculkSensorBlockEntity.VibrationUser.canReceiveVibration
(ServerLevel p_282127_, BlockPos p_283268_, Holder<GameEvent> p_316115_, GameEvent.Context p_282856_) boolean
SculkShriekerBlockEntity.VibrationUser.canReceiveVibration
(ServerLevel p_281256_, BlockPos p_281528_, Holder<GameEvent> p_316788_, GameEvent.Context p_282914_) boolean
SculkCatalystBlockEntity.CatalystListener.handleGameEvent
(ServerLevel p_283470_, Holder<GameEvent> p_316661_, GameEvent.Context p_283014_, Vec3 p_282350_) void
SculkSensorBlockEntity.VibrationUser.onReceiveVibration
(ServerLevel p_282851_, BlockPos p_281608_, Holder<GameEvent> p_316423_, Entity p_282123_, Entity p_283090_, float p_283130_) 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
Modifier and TypeFieldDescriptionstatic final Holder.Reference
<GameEvent> GameEvent.BLOCK_ACTIVATE
static final Holder.Reference
<GameEvent> GameEvent.BLOCK_ATTACH
static final Holder.Reference
<GameEvent> GameEvent.BLOCK_CHANGE
static final Holder.Reference
<GameEvent> GameEvent.BLOCK_CLOSE
static final Holder.Reference
<GameEvent> GameEvent.BLOCK_DEACTIVATE
static final Holder.Reference
<GameEvent> GameEvent.BLOCK_DESTROY
static final Holder.Reference
<GameEvent> GameEvent.BLOCK_DETACH
static final Holder.Reference
<GameEvent> GameEvent.BLOCK_OPEN
static final Holder.Reference
<GameEvent> GameEvent.BLOCK_PLACE
static final Holder.Reference
<GameEvent> GameEvent.CONTAINER_CLOSE
static final Holder.Reference
<GameEvent> GameEvent.CONTAINER_OPEN
static final Holder.Reference
<GameEvent> GameEvent.DRINK
static final Holder.Reference
<GameEvent> GameEvent.EAT
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
static final Holder.Reference
<GameEvent> GameEvent.EQUIP
static final Holder.Reference
<GameEvent> GameEvent.EXPLODE
static final Holder.Reference
<GameEvent> GameEvent.FLAP
static final Holder.Reference
<GameEvent> GameEvent.FLUID_PICKUP
static final Holder.Reference
<GameEvent> GameEvent.FLUID_PLACE
GameEvent.ListenerInfo.gameEvent
static final Holder.Reference
<GameEvent> GameEvent.HIT_GROUND
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
static final Holder.Reference
<GameEvent> GameEvent.NOTE_BLOCK_PLAY
static final Holder.Reference
<GameEvent> GameEvent.PRIME_FUSE
static final Holder.Reference
<GameEvent> GameEvent.PROJECTILE_LAND
static final Holder.Reference
<GameEvent> GameEvent.PROJECTILE_SHOOT
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
static final Holder.Reference
<GameEvent> GameEvent.SHRIEK
static final Holder.Reference
<GameEvent> GameEvent.SPLASH
static final Holder.Reference
<GameEvent> GameEvent.STEP
static final Holder.Reference
<GameEvent> GameEvent.SWIM
static final Holder.Reference
<GameEvent> GameEvent.TELEPORT
static final Holder.Reference
<GameEvent> GameEvent.UNEQUIP
Modifier and TypeMethodDescriptionGameEvent.ListenerInfo.gameEvent()
private static Holder.Reference
<GameEvent> private static Holder.Reference
<GameEvent> Modifier and TypeMethodDescriptionboolean
GameEventListener.handleGameEvent
(ServerLevel p_223757_, Holder<GameEvent> p_316739_, GameEvent.Context p_249681_, Vec3 p_251048_) void
GameEventDispatcher.post
(Holder<GameEvent> p_316151_, Vec3 p_250613_, GameEvent.Context p_251777_) boolean
EuclideanGameEventListenerRegistry.visitInRangeListeners
(Holder<GameEvent> p_316862_, Vec3 p_251445_, GameEvent.Context p_252317_, GameEventListenerRegistry.ListenerVisitor p_251422_) boolean
GameEventListenerRegistry.visitInRangeListeners
(Holder<GameEvent> p_316434_, Vec3 p_249144_, GameEvent.Context p_249328_, GameEventListenerRegistry.ListenerVisitor p_250123_) ModifierConstructorDescriptionListenerInfo
(Holder<GameEvent> p_316198_, Vec3 p_249118_, GameEvent.Context p_251196_, GameEventListener p_251701_, Vec3 p_248854_) -
Uses of GameEvent in net.minecraft.world.level.gameevent.vibrations
Modifier 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.Modifier and TypeMethodDescriptionVibrationInfo.gameEvent()
Returns the value of thegameEvent
record component.VibrationSystem.User.getListenableEvents()
static ResourceKey
<GameEvent> VibrationSystem.getResonanceEventByFrequency
(int p_282105_) Modifier and TypeMethodDescriptionboolean
VibrationSystem.User.canReceiveVibration
(ServerLevel p_282960_, BlockPos p_282488_, Holder<GameEvent> p_316319_, GameEvent.Context p_283577_) void
VibrationSystem.Listener.forceScheduleVibration
(ServerLevel p_282808_, Holder<GameEvent> p_316321_, GameEvent.Context p_281652_, Vec3 p_281530_) static int
VibrationSystem.getGameEventFrequency
(Holder<GameEvent> p_316300_) static int
VibrationSystem.getGameEventFrequency
(ResourceKey<GameEvent> p_316800_) boolean
VibrationSystem.Listener.handleGameEvent
(ServerLevel p_282254_, Holder<GameEvent> p_316513_, GameEvent.Context p_283664_, Vec3 p_282426_) default boolean
VibrationSystem.User.isValidVibration
(Holder<GameEvent> p_316804_, GameEvent.Context p_283373_) void
VibrationSystem.User.onReceiveVibration
(ServerLevel p_282148_, BlockPos p_282090_, Holder<GameEvent> p_316773_, Entity p_281578_, Entity p_281308_, float p_281707_) private void
VibrationSystem.Listener.scheduleVibration
(ServerLevel p_282037_, VibrationSystem.Data p_283229_, Holder<GameEvent> p_316858_, GameEvent.Context p_283344_, Vec3 p_281758_, Vec3 p_282990_) ModifierConstructorDescriptionVibrationInfo
(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
Modifier and TypeMethodDescriptionstatic boolean
CommonHooks.onVanillaGameEvent
(Level level, Holder<GameEvent> vanillaEvent, Vec3 pos, GameEvent.Context context) -
Uses of GameEvent in net.neoforged.neoforge.event
ModifierConstructorDescriptionVanillaGameEvent
(Level level, Holder<GameEvent> vanillaEvent, Vec3 position, GameEvent.Context context) -
Uses of GameEvent in net.neoforged.neoforge.registries.datamaps.builtin
Modifier and TypeFieldDescriptionstatic final DataMapType
<GameEvent, VibrationFrequency> NeoForgeDataMaps.VIBRATION_FREQUENCIES
The GameEvent data map that replacesVibrationSystem.VIBRATION_FREQUENCY_FOR_EVENT
.
data map
instead.