Uses of Class
net.minecraft.world.event.GameEvent
Package
Description
-
Uses of GameEvent in net.minecraft.block
Modifier and TypeFieldDescriptionstatic final Object2IntMap<GameEvent>
SculkSensorBlock.FREQUENCIES
-
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. -
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
-
Uses of GameEvent in net.minecraft.client.world
Modifier and TypeMethodDescriptionvoid
ClientWorld.emitGameEvent
(GameEvent event, Vec3d emitterPos, GameEvent.Emitter emitter) Emits an game event. -
Uses of GameEvent in net.minecraft.data.server
Modifier and TypeFieldDescription(package private) static final GameEvent[]
GameEventTagProvider.field_38363
-
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. -
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.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 an game event. -
Uses of GameEvent in net.minecraft.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.util.registry
Modifier and TypeFieldDescriptionstatic final DefaultedRegistry<GameEvent>
Registry.GAME_EVENT
static final RegistryKey<Registry<GameEvent>>
Registry.GAME_EVENT_KEY
-
Uses of GameEvent in net.minecraft.world
Modifier and TypeMethodDescriptionvoid
ChunkRegion.emitGameEvent
(GameEvent event, Vec3d emitterPos, GameEvent.Emitter emitter) Emits an 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 an 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
VibrationListener.Vibration.gameEvent
The field for thegameEvent
record component.Modifier and TypeMethodDescriptionVibrationListener.Vibration.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, BiConsumer<GameEventListener, Vec3d> onListenerAccept) Dispatches an event to all the listeners in this dispatcher.boolean
SimpleGameEventDispatcher.dispatch
(GameEvent event, Vec3d pos, GameEvent.Emitter emitter, BiConsumer<GameEventListener, Vec3d> onListenerAccept) Dispatches an event to all the listeners in this dispatcher.private void
VibrationListener.listen
(ServerWorld world, GameEvent gameEvent, GameEvent.Emitter emitter, Vec3d start, Vec3d end)