Uses of Class
net.minecraft.world.event.GameEvent
Package
Description
-
Uses of GameEvent in net.minecraft.block.entity
Modifier and TypeMethodDescriptionvoid
SculkSensorBlockEntity.accept
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity, @Nullable Entity sourceEntity, float distance) Accepts a game event after delay.void
SculkShriekerBlockEntity.accept
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity, @Nullable Entity sourceEntity, float distance) Accepts a game event after delay.boolean
SculkSensorBlockEntity.accepts
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.boolean
SculkShriekerBlockEntity.accepts
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.boolean
SculkCatalystBlockEntity.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 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
boolean
GameEventDebugRenderer.Listener.listen
(ServerWorld world, GameEvent event, GameEvent.Emitter emitter, Vec3d emitterPos) Listens to an incoming game event. -
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
Modifier and TypeFieldDescription(package private) static final GameEvent[]
GameEventTagProvider.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.accept
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity, @Nullable Entity sourceEntity, float distance) Accepts a game event after delay.boolean
WardenEntity.accepts
(ServerWorld world, GameEventListener listener, 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.VibrationListenerCallback.accept
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, Entity entity, Entity sourceEntity, float distance) Accepts a game event after delay.boolean
AllayEntity.VibrationListenerCallback.accepts
(ServerWorld world, GameEventListener listener, 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.entity.vehicle
Modifier and TypeMethodDescriptiondefault ActionResult
VehicleInventory.open
(BiConsumer<GameEvent, Entity> gameEventEmitter, PlayerEntity player) -
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.DISPENSE_FAIL
static final GameEvent
GameEvent.DRINK
static final GameEvent
GameEvent.EAT
static final GameEvent
GameEvent.ELYTRA_GLIDE
static final GameEvent
GameEvent.ENTITY_DAMAGE
static final GameEvent
GameEvent.ENTITY_DIE
static final GameEvent
GameEvent.ENTITY_INTERACT
static final GameEvent
GameEvent.ENTITY_PLACE
static final GameEvent
GameEvent.ENTITY_ROAR
static final GameEvent
GameEvent.ENTITY_SHAKE
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.PISTON_CONTRACT
static final GameEvent
GameEvent.PISTON_EXTEND
static final GameEvent
GameEvent.PRIME_FUSE
static final GameEvent
GameEvent.PROJECTILE_LAND
static final GameEvent
GameEvent.PROJECTILE_SHOOT
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
Modifier and TypeFieldDescriptionprivate final RegistryEntry.Reference<GameEvent>
GameEvent.registryEntry
Modifier and TypeMethodDescriptionGameEvent.Message.getEvent()
private static GameEvent
private static GameEvent
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 TypeFieldDescriptionstatic final Object2IntMap<GameEvent>
VibrationListener.FREQUENCIES
Modifier and TypeMethodDescriptionVibration.gameEvent()
Returns the value of thegameEvent
record component.Modifier and TypeMethodDescriptionvoid
VibrationListener.Callback.accept
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity, @Nullable Entity sourceEntity, float distance) Accepts a game event after delay.boolean
VibrationListener.Callback.accepts
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.default boolean
VibrationListener.Callback.canAccept
(GameEvent gameEvent, GameEvent.Emitter emitter) boolean
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.void
VibrationListener.forceListen
(ServerWorld world, GameEvent event, GameEvent.Emitter emitter, Vec3d emitterPos) static int
VibrationListener.getFrequency
(GameEvent event) boolean
GameEventListener.listen
(ServerWorld world, GameEvent event, GameEvent.Emitter emitter, Vec3d emitterPos) Listens to an incoming game event.boolean
VibrationListener.listen
(ServerWorld world, GameEvent event, GameEvent.Emitter emitter, Vec3d emitterPos) Listens to an incoming game event.void
VibrationListener.trySelect
(ServerWorld world, GameEvent event, GameEvent.Emitter emitter, Vec3d emitterPos, Vec3d listenerPos)