Uses of 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, GameEvent event, @Nullable Entity sourceEntity, @Nullable Entity entity, float distance) Accepts a game event after delay.void
SculkShriekerBlockEntity.VibrationCallback.accept
(ServerWorld world, BlockPos pos, GameEvent event, @Nullable Entity sourceEntity, @Nullable Entity entity, float distance) Accepts a game event after delay.boolean
CalibratedSculkSensorBlockEntity.Callback.accepts
(ServerWorld world, BlockPos pos, GameEvent event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.boolean
SculkSensorBlockEntity.VibrationCallback.accepts
(ServerWorld world, BlockPos pos, GameEvent event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.boolean
SculkShriekerBlockEntity.VibrationCallback.accepts
(ServerWorld world, BlockPos pos, GameEvent event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.boolean
SculkCatalystBlockEntity.Listener.listen
(ServerWorld world, 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 TypeMethodDescriptionboolean
GameEventDebugRenderer.Listener.listen
(ServerWorld world, GameEvent event, GameEvent.Emitter emitter, Vec3d emitterPos) Listens to an incoming game event.Modifier and TypeMethodDescriptionvoid
GameEventDebugRenderer.addEvent
(RegistryKey<GameEvent> eventKey, Vec3d pos) ModifierConstructorDescription(package private)
Entry
(long startingMs, RegistryKey<GameEvent> registryKey, Vec3d pos) -
Uses of GameEvent in net.minecraft.client.world
Modifier and TypeMethodDescriptionvoid
ClientWorld.emitGameEvent
(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 GameEvent[]
VanillaGameEventTagProvider.BASIC_GAME_EVENTS
-
Uses of GameEvent in net.minecraft.entity
Modifier and TypeMethodDescriptionvoid
Entity.emitGameEvent
(GameEvent event) Emits a game event originating from this entity at this entity's position.void
Entity.emitGameEvent
(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, GameEvent event, @Nullable Entity sourceEntity, @Nullable Entity entity, float distance) Accepts a game event after delay.boolean
WardenEntity.VibrationCallback.accepts
(ServerWorld world, BlockPos pos, 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, GameEvent event, @Nullable Entity sourceEntity, @Nullable Entity entity, float distance) Accepts a game event after delay.boolean
AllayEntity.VibrationCallback.accepts
(ServerWorld world, BlockPos pos, GameEvent event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.boolean
AllayEntity.JukeboxEventListener.listen
(ServerWorld world, 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.type
The field for thetype
record component.Modifier and TypeMethodDescriptionDebugGameEventCustomPayload.type()
Returns the value of thetype
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, GameEvent event, Vec3d pos) -
Uses of GameEvent in net.minecraft.server.world
Modifier and TypeMethodDescriptionvoid
ServerWorld.emitGameEvent
(GameEvent event, Vec3d emitterPos, GameEvent.Emitter emitter) Emits a game event. -
Uses of GameEvent in net.minecraft.world
Modifier and TypeMethodDescriptionvoid
ChunkRegion.emitGameEvent
(GameEvent event, Vec3d emitterPos, GameEvent.Emitter emitter) Emits a game event.default void
WorldAccess.emitGameEvent
(@Nullable Entity entity, GameEvent event, BlockPos pos) default void
WorldAccess.emitGameEvent
(@Nullable Entity entity, GameEvent event, Vec3d pos) default void
WorldAccess.emitGameEvent
(GameEvent event, BlockPos pos, GameEvent.Emitter emitter) void
WorldAccess.emitGameEvent
(GameEvent event, Vec3d emitterPos, GameEvent.Emitter emitter) Emits a game event. -
Uses of GameEvent in net.minecraft.world.event
Modifier and TypeFieldDescriptionstatic final GameEvent
GameEvent.BLOCK_ACTIVATE
static final GameEvent
GameEvent.BLOCK_ATTACH
static final GameEvent
GameEvent.BLOCK_CHANGE
static final GameEvent
GameEvent.BLOCK_CLOSE
static final GameEvent
GameEvent.BLOCK_DEACTIVATE
static final GameEvent
GameEvent.BLOCK_DESTROY
static final GameEvent
GameEvent.BLOCK_DETACH
static final GameEvent
GameEvent.BLOCK_OPEN
static final GameEvent
GameEvent.BLOCK_PLACE
static final GameEvent
GameEvent.CONTAINER_CLOSE
static final GameEvent
GameEvent.CONTAINER_OPEN
static final GameEvent
GameEvent.DRINK
static final GameEvent
GameEvent.EAT
static final GameEvent
GameEvent.ELYTRA_GLIDE
static final GameEvent
GameEvent.ENTITY_ACTION
static final GameEvent
GameEvent.ENTITY_DAMAGE
static final GameEvent
GameEvent.ENTITY_DIE
static final GameEvent
GameEvent.ENTITY_DISMOUNT
static final GameEvent
GameEvent.ENTITY_INTERACT
static final GameEvent
GameEvent.ENTITY_MOUNT
static final GameEvent
GameEvent.ENTITY_PLACE
static final GameEvent
GameEvent.EQUIP
private final GameEvent
GameEvent.Message.event
static final GameEvent
GameEvent.EXPLODE
static final GameEvent
GameEvent.FLAP
static final GameEvent
GameEvent.FLUID_PICKUP
static final GameEvent
GameEvent.FLUID_PLACE
static final GameEvent
GameEvent.HIT_GROUND
static final GameEvent
GameEvent.INSTRUMENT_PLAY
static final GameEvent
GameEvent.ITEM_INTERACT_FINISH
static final GameEvent
GameEvent.ITEM_INTERACT_START
static final GameEvent
GameEvent.JUKEBOX_PLAY
static final GameEvent
GameEvent.JUKEBOX_STOP_PLAY
static final GameEvent
GameEvent.LIGHTNING_STRIKE
static final GameEvent
GameEvent.NOTE_BLOCK_PLAY
static final GameEvent
GameEvent.PRIME_FUSE
static final GameEvent
GameEvent.PROJECTILE_LAND
static final GameEvent
GameEvent.PROJECTILE_SHOOT
static final GameEvent
GameEvent.RESONATE_1
static final GameEvent
GameEvent.RESONATE_10
static final GameEvent
GameEvent.RESONATE_11
static final GameEvent
GameEvent.RESONATE_12
static final GameEvent
GameEvent.RESONATE_13
static final GameEvent
GameEvent.RESONATE_14
static final GameEvent
GameEvent.RESONATE_15
static final GameEvent
GameEvent.RESONATE_2
static final GameEvent
GameEvent.RESONATE_3
static final GameEvent
GameEvent.RESONATE_4
static final GameEvent
GameEvent.RESONATE_5
static final GameEvent
GameEvent.RESONATE_6
static final GameEvent
GameEvent.RESONATE_7
static final GameEvent
GameEvent.RESONATE_8
static final GameEvent
GameEvent.RESONATE_9
static final GameEvent[]
Vibrations.RESONATIONS
static final GameEvent
GameEvent.SCULK_SENSOR_TENDRILS_CLICKING
static final GameEvent
GameEvent.SHEAR
static final GameEvent
GameEvent.SHRIEK
static final GameEvent
GameEvent.SPLASH
static final GameEvent
GameEvent.STEP
static final GameEvent
GameEvent.SWIM
static final GameEvent
GameEvent.TELEPORT
static final GameEvent
GameEvent.UNEQUIP
Modifier and TypeFieldDescriptionstatic final ToIntFunction<GameEvent>
Vibrations.FREQUENCIES
private final RegistryEntry.Reference<GameEvent>
GameEvent.registryEntry
Modifier and TypeMethodDescriptionGameEvent.Message.getEvent()
static GameEvent
Vibrations.getResonation
(int frequency) private static GameEvent
private static GameEvent
Modifier and TypeMethodDescriptionGameEvent.getRegistryEntry()
Deprecated.Vibrations.Callback.getTag()
Modifier and TypeMethodDescriptionvoid
Vibrations.Callback.accept
(ServerWorld world, BlockPos pos, GameEvent event, @Nullable Entity sourceEntity, @Nullable Entity entity, float distance) Accepts a game event after delay.boolean
Vibrations.Callback.accepts
(ServerWorld world, BlockPos pos, GameEvent event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.default boolean
Vibrations.Callback.canAccept
(GameEvent gameEvent, GameEvent.Emitter emitter) void
Vibrations.VibrationListener.forceListen
(ServerWorld world, GameEvent event, GameEvent.Emitter emitter, Vec3d emitterPos) static int
Vibrations.getFrequency
(GameEvent event) boolean
Vibrations.VibrationListener.listen
(ServerWorld world, GameEvent event, GameEvent.Emitter emitter, Vec3d emitterPos) Listens to an incoming game event.private void
Vibrations.VibrationListener.listen
(ServerWorld world, Vibrations.ListenerData listenerData, GameEvent event, GameEvent.Emitter emitter, Vec3d emitterPos, Vec3d listenerPos) ModifierConstructorDescriptionMessage
(GameEvent event, Vec3d emitterPos, GameEvent.Emitter emitter, GameEventListener listener, Vec3d listenerPos) -
Uses of GameEvent in net.minecraft.world.event.listener
Modifier and TypeFieldDescriptionprivate final 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
(GameEvent event, Vec3d pos, GameEvent.Emitter emitter, GameEventDispatcher.DispatchCallback callback) Dispatches an event to all the listeners in this dispatcher.void
GameEventDispatchManager.dispatch
(GameEvent event, Vec3d emitterPos, GameEvent.Emitter emitter) boolean
SimpleGameEventDispatcher.dispatch
(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, GameEvent event, GameEvent.Emitter emitter, Vec3d emitterPos) Listens to an incoming game event.