Uses of Record Class
net.minecraft.world.event.GameEvent
Package
Description
-
Uses of GameEvent in net.minecraft.block.entity
Modifier and TypeMethodDescriptionvoid
SculkSensorBlockEntity.VibrationCallback.accept
(ServerWorld world, BlockPos pos, RegistryEntry<GameEvent> event, @Nullable Entity sourceEntity, @Nullable Entity entity, float distance) Accepts a game event after delay.void
SculkShriekerBlockEntity.VibrationCallback.accept
(ServerWorld world, BlockPos pos, RegistryEntry<GameEvent> event, @Nullable Entity sourceEntity, @Nullable Entity entity, float distance) Accepts a game event after delay.boolean
CalibratedSculkSensorBlockEntity.Callback.accepts
(ServerWorld world, BlockPos pos, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.boolean
SculkSensorBlockEntity.VibrationCallback.accepts
(ServerWorld world, BlockPos pos, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.boolean
SculkShriekerBlockEntity.VibrationCallback.accepts
(ServerWorld world, BlockPos pos, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.boolean
SculkCatalystBlockEntity.Listener.listen
(ServerWorld world, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter, Vec3d emitterPos) Listens to an incoming game event. -
Uses of GameEvent in net.minecraft.client.render.debug
Modifier and TypeFieldDescriptionprivate final RegistryKey
<GameEvent> GameEventDebugRenderer.Entry.event
The field for theevent
record component.Modifier and TypeMethodDescriptionGameEventDebugRenderer.Entry.event()
Returns the value of theevent
record component.Modifier and TypeMethodDescriptionvoid
GameEventDebugRenderer.addEvent
(RegistryKey<GameEvent> eventKey, Vec3d pos) boolean
GameEventDebugRenderer.Listener.listen
(ServerWorld world, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter, Vec3d emitterPos) Listens to an incoming game event.ModifierConstructorDescription(package private)
Entry
(long startingMs, RegistryKey<GameEvent> registryKey, Vec3d pos) -
Uses of GameEvent in net.minecraft.client.world
Modifier and TypeMethodDescriptionvoid
ClientWorld.emitGameEvent
(RegistryEntry<GameEvent> event, Vec3d emitterPos, GameEvent.Emitter emitter) Emits a game event. -
Uses of GameEvent in net.minecraft.data.server.tag.vanilla
Modifier and TypeFieldDescription(package private) static final List
<RegistryKey<GameEvent>> VanillaGameEventTagProvider.BASIC_GAME_EVENTS
-
Uses of GameEvent in net.minecraft.entity
Modifier and TypeMethodDescriptionvoid
Entity.emitGameEvent
(RegistryEntry<GameEvent> event) Emits a game event originating from this entity at this entity's position.void
Entity.emitGameEvent
(RegistryEntry<GameEvent> event, @Nullable Entity entity) Emits a game event originating from another entity at this entity's position. -
Uses of GameEvent in net.minecraft.entity.mob
Modifier and TypeMethodDescriptionvoid
WardenEntity.VibrationCallback.accept
(ServerWorld world, BlockPos pos, RegistryEntry<GameEvent> event, @Nullable Entity sourceEntity, @Nullable Entity entity, float distance) Accepts a game event after delay.boolean
WardenEntity.VibrationCallback.accepts
(ServerWorld world, BlockPos pos, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event. -
Uses of GameEvent in net.minecraft.entity.passive
Modifier and TypeMethodDescriptionvoid
AllayEntity.VibrationCallback.accept
(ServerWorld world, BlockPos pos, RegistryEntry<GameEvent> event, @Nullable Entity sourceEntity, @Nullable Entity entity, float distance) Accepts a game event after delay.boolean
AllayEntity.VibrationCallback.accepts
(ServerWorld world, BlockPos pos, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.boolean
AllayEntity.JukeboxEventListener.listen
(ServerWorld world, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter, Vec3d emitterPos) Listens to an incoming game event. -
Uses of GameEvent in net.minecraft.network.packet.s2c.custom
Modifier and TypeFieldDescriptionprivate final RegistryKey
<GameEvent> DebugGameEventCustomPayload.gameEventType
The field for thegameEventType
record component.Modifier and TypeMethodDescriptionDebugGameEventCustomPayload.gameEventType()
Returns the value of thegameEventType
record component.ModifierConstructorDescriptionDebugGameEventCustomPayload
(RegistryKey<GameEvent> registryKey, Vec3d vec3d) -
Uses of GameEvent in net.minecraft.registry
Modifier and TypeFieldDescriptionstatic final DefaultedRegistry
<GameEvent> Registries.GAME_EVENT
static final RegistryKey
<Registry<GameEvent>> RegistryKeys.GAME_EVENT
-
Uses of GameEvent in net.minecraft.registry.tag
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.server.network
Modifier and TypeMethodDescriptionstatic void
DebugInfoSender.sendGameEvent
(World world, RegistryEntry<GameEvent> event, Vec3d pos) -
Uses of GameEvent in net.minecraft.server.world
Modifier and TypeMethodDescriptionvoid
ServerWorld.emitGameEvent
(RegistryEntry<GameEvent> event, Vec3d emitterPos, GameEvent.Emitter emitter) Emits a game event. -
Uses of GameEvent in net.minecraft.world
Modifier and TypeMethodDescriptionvoid
ChunkRegion.emitGameEvent
(RegistryEntry<GameEvent> event, Vec3d emitterPos, GameEvent.Emitter emitter) Emits a game event.default void
WorldAccess.emitGameEvent
(@Nullable Entity entity, RegistryEntry<GameEvent> event, BlockPos pos) default void
WorldAccess.emitGameEvent
(@Nullable Entity entity, RegistryEntry<GameEvent> event, Vec3d pos) default void
WorldAccess.emitGameEvent
(RegistryEntry<GameEvent> event, BlockPos pos, GameEvent.Emitter emitter) void
WorldAccess.emitGameEvent
(RegistryEntry<GameEvent> event, Vec3d emitterPos, GameEvent.Emitter emitter) Emits a game event.default void
WorldAccess.emitGameEvent
(RegistryKey<GameEvent> event, BlockPos pos, GameEvent.Emitter emitter) -
Uses of GameEvent in net.minecraft.world.event
Modifier and TypeFieldDescriptionstatic final RegistryEntry.Reference
<GameEvent> GameEvent.BLOCK_ACTIVATE
static final RegistryEntry.Reference
<GameEvent> GameEvent.BLOCK_ATTACH
static final RegistryEntry.Reference
<GameEvent> GameEvent.BLOCK_CHANGE
static final RegistryEntry.Reference
<GameEvent> GameEvent.BLOCK_CLOSE
static final RegistryEntry.Reference
<GameEvent> GameEvent.BLOCK_DEACTIVATE
static final RegistryEntry.Reference
<GameEvent> GameEvent.BLOCK_DESTROY
static final RegistryEntry.Reference
<GameEvent> GameEvent.BLOCK_DETACH
static final RegistryEntry.Reference
<GameEvent> GameEvent.BLOCK_OPEN
static final RegistryEntry.Reference
<GameEvent> GameEvent.BLOCK_PLACE
static final RegistryEntry.Reference
<GameEvent> GameEvent.CONTAINER_CLOSE
static final RegistryEntry.Reference
<GameEvent> GameEvent.CONTAINER_OPEN
static final RegistryEntry.Reference
<GameEvent> GameEvent.DRINK
static final RegistryEntry.Reference
<GameEvent> GameEvent.EAT
static final RegistryEntry.Reference
<GameEvent> GameEvent.ELYTRA_GLIDE
static final RegistryEntry.Reference
<GameEvent> GameEvent.ENTITY_ACTION
static final RegistryEntry.Reference
<GameEvent> GameEvent.ENTITY_DAMAGE
static final RegistryEntry.Reference
<GameEvent> GameEvent.ENTITY_DIE
static final RegistryEntry.Reference
<GameEvent> GameEvent.ENTITY_DISMOUNT
static final RegistryEntry.Reference
<GameEvent> GameEvent.ENTITY_INTERACT
static final RegistryEntry.Reference
<GameEvent> GameEvent.ENTITY_MOUNT
static final RegistryEntry.Reference
<GameEvent> GameEvent.ENTITY_PLACE
static final RegistryEntry.Reference
<GameEvent> GameEvent.EQUIP
private final RegistryEntry
<GameEvent> GameEvent.Message.event
static final RegistryEntry.Reference
<GameEvent> GameEvent.EXPLODE
static final RegistryEntry.Reference
<GameEvent> GameEvent.FLAP
static final RegistryEntry.Reference
<GameEvent> GameEvent.FLUID_PICKUP
static final RegistryEntry.Reference
<GameEvent> GameEvent.FLUID_PLACE
static final ToIntFunction
<RegistryKey<GameEvent>> Vibrations.FREQUENCIES
static final RegistryEntry.Reference
<GameEvent> GameEvent.HIT_GROUND
static final RegistryEntry.Reference
<GameEvent> GameEvent.INSTRUMENT_PLAY
static final RegistryEntry.Reference
<GameEvent> GameEvent.ITEM_INTERACT_FINISH
static final RegistryEntry.Reference
<GameEvent> GameEvent.ITEM_INTERACT_START
static final RegistryEntry.Reference
<GameEvent> GameEvent.JUKEBOX_PLAY
static final RegistryEntry.Reference
<GameEvent> GameEvent.JUKEBOX_STOP_PLAY
static final RegistryEntry.Reference
<GameEvent> GameEvent.LIGHTNING_STRIKE
static final RegistryEntry.Reference
<GameEvent> GameEvent.NOTE_BLOCK_PLAY
static final RegistryEntry.Reference
<GameEvent> GameEvent.PRIME_FUSE
static final RegistryEntry.Reference
<GameEvent> GameEvent.PROJECTILE_LAND
static final RegistryEntry.Reference
<GameEvent> GameEvent.PROJECTILE_SHOOT
static final RegistryEntry.Reference
<GameEvent> GameEvent.RESONATE_1
static final RegistryEntry.Reference
<GameEvent> GameEvent.RESONATE_10
static final RegistryEntry.Reference
<GameEvent> GameEvent.RESONATE_11
static final RegistryEntry.Reference
<GameEvent> GameEvent.RESONATE_12
static final RegistryEntry.Reference
<GameEvent> GameEvent.RESONATE_13
static final RegistryEntry.Reference
<GameEvent> GameEvent.RESONATE_14
static final RegistryEntry.Reference
<GameEvent> GameEvent.RESONATE_15
static final RegistryEntry.Reference
<GameEvent> GameEvent.RESONATE_2
static final RegistryEntry.Reference
<GameEvent> GameEvent.RESONATE_3
static final RegistryEntry.Reference
<GameEvent> GameEvent.RESONATE_4
static final RegistryEntry.Reference
<GameEvent> GameEvent.RESONATE_5
static final RegistryEntry.Reference
<GameEvent> GameEvent.RESONATE_6
static final RegistryEntry.Reference
<GameEvent> GameEvent.RESONATE_7
static final RegistryEntry.Reference
<GameEvent> GameEvent.RESONATE_8
static final RegistryEntry.Reference
<GameEvent> GameEvent.RESONATE_9
static final List
<RegistryKey<GameEvent>> Vibrations.RESONATIONS
static final RegistryEntry.Reference
<GameEvent> GameEvent.SCULK_SENSOR_TENDRILS_CLICKING
static final RegistryEntry.Reference
<GameEvent> GameEvent.SHEAR
static final RegistryEntry.Reference
<GameEvent> GameEvent.SHRIEK
static final RegistryEntry.Reference
<GameEvent> GameEvent.SPLASH
static final RegistryEntry.Reference
<GameEvent> GameEvent.STEP
static final RegistryEntry.Reference
<GameEvent> GameEvent.SWIM
static final RegistryEntry.Reference
<GameEvent> GameEvent.TELEPORT
static final RegistryEntry.Reference
<GameEvent> GameEvent.UNEQUIP
Modifier and TypeMethodDescriptionGameEvent.Message.getEvent()
static RegistryKey
<GameEvent> Vibrations.getResonation
(int frequency) Vibrations.Callback.getTag()
private static RegistryEntry.Reference
<GameEvent> private static RegistryEntry.Reference
<GameEvent> static RegistryEntry
<GameEvent> GameEvent.registerAndGetDefault
(Registry<GameEvent> registry) Modifier and TypeMethodDescriptionvoid
Vibrations.Callback.accept
(ServerWorld world, BlockPos pos, RegistryEntry<GameEvent> event, @Nullable Entity sourceEntity, @Nullable Entity entity, float distance) Accepts a game event after delay.boolean
Vibrations.Callback.accepts
(ServerWorld world, BlockPos pos, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.default boolean
Vibrations.Callback.canAccept
(RegistryEntry<GameEvent> gameEvent, GameEvent.Emitter emitter) void
Vibrations.VibrationListener.forceListen
(ServerWorld world, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter, Vec3d emitterPos) static int
Vibrations.getFrequency
(RegistryEntry<GameEvent> gameEvent) static int
Vibrations.getFrequency
(RegistryKey<GameEvent> gameEvent) boolean
Vibrations.VibrationListener.listen
(ServerWorld world, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter, Vec3d emitterPos) Listens to an incoming game event.private void
Vibrations.VibrationListener.listen
(ServerWorld world, Vibrations.ListenerData listenerData, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter, Vec3d emitterPos, Vec3d listenerPos) static RegistryEntry
<GameEvent> GameEvent.registerAndGetDefault
(Registry<GameEvent> registry) ModifierConstructorDescriptionMessage
(RegistryEntry<GameEvent> event, Vec3d emitterPos, GameEvent.Emitter emitter, GameEventListener listener, Vec3d listenerPos) -
Uses of GameEvent in net.minecraft.world.event.listener
Modifier and TypeFieldDescriptionprivate final RegistryEntry
<GameEvent> Vibration.gameEvent
The field for thegameEvent
record component.Modifier and TypeMethodDescriptionVibration.gameEvent()
Returns the value of thegameEvent
record component.Modifier and TypeMethodDescriptionboolean
GameEventDispatcher.dispatch
(RegistryEntry<GameEvent> event, Vec3d pos, GameEvent.Emitter emitter, GameEventDispatcher.DispatchCallback callback) Dispatches an event to all the listeners in this dispatcher.void
GameEventDispatchManager.dispatch
(RegistryEntry<GameEvent> event, Vec3d emitterPos, GameEvent.Emitter emitter) boolean
SimpleGameEventDispatcher.dispatch
(RegistryEntry<GameEvent> event, Vec3d pos, GameEvent.Emitter emitter, GameEventDispatcher.DispatchCallback callback) Dispatches an event to all the listeners in this dispatcher.boolean
GameEventListener.listen
(ServerWorld world, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter, Vec3d emitterPos) Listens to an incoming game event.ModifierConstructorDescriptionVibration
(RegistryEntry<GameEvent> gameEvent, float distance, Vec3d pos, @Nullable UUID uuid, @Nullable UUID projectileOwnerUuid) Vibration
(RegistryEntry<GameEvent> registryEntry, float float2, Vec3d vec3d, @Nullable UUID uUID, @Nullable UUID uUID2, @Nullable Entity entity)