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
(World world, GameEventListener listener, GameEvent event, int distance) Accepts a game event after delay.boolean
SculkSensorBlockEntity.accepts
(World world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity) Returns whether the callback wants to accept this event. -
Uses of GameEvent in net.minecraft.client.render.debug
-
Uses of GameEvent in net.minecraft.client.world
Modifier and TypeMethodDescriptionvoid
ClientWorld.emitGameEvent
(@Nullable Entity entity, GameEvent event, BlockPos pos) Emits an game event. -
Uses of GameEvent in net.minecraft.entity
Modifier and TypeMethodDescriptionvoid
Entity.emitGameEvent
(GameEvent event) void
Entity.emitGameEvent
(GameEvent event, @Nullable Entity entity) void
Entity.emitGameEvent
(GameEvent event, @Nullable Entity entity, BlockPos pos) void
Entity.emitGameEvent
(GameEvent event, BlockPos pos) -
Uses of GameEvent in net.minecraft.server.network
Modifier and TypeMethodDescriptionstatic void
DebugInfoSender.sendGameEvent
(World world, GameEvent event, BlockPos pos) -
Uses of GameEvent in net.minecraft.server.world
Modifier and TypeMethodDescriptionvoid
ServerWorld.emitGameEvent
(@Nullable Entity entity, GameEvent event, BlockPos pos) Emits an game event. -
Uses of GameEvent in net.minecraft.tag
Modifier and TypeFieldDescriptionGameEventTags.IGNORE_VIBRATIONS_SNEAKING
GameEventTags.VIBRATIONS
-
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
(@Nullable Entity entity, GameEvent event, BlockPos pos) Emits an game event.protected void
World.emitGameEvent
(@Nullable Entity entity, GameEvent gameEvent, BlockPos pos, int range) default void
WorldAccess.emitGameEvent
(@Nullable Entity entity, GameEvent event, Entity emitter) void
WorldAccess.emitGameEvent
(@Nullable Entity entity, GameEvent event, BlockPos pos) Emits an game event.default void
WorldAccess.emitGameEvent
(GameEvent event, Entity emitter) default void
WorldAccess.emitGameEvent
(GameEvent event, BlockPos pos) -
Uses of GameEvent in net.minecraft.world.event
Modifier and TypeFieldDescriptionstatic final GameEvent
GameEvent.BLOCK_ATTACH
static final GameEvent
GameEvent.BLOCK_CHANGE
static final GameEvent
GameEvent.BLOCK_CLOSE
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.BLOCK_PRESS
static final GameEvent
GameEvent.BLOCK_SWITCH
static final GameEvent
GameEvent.BLOCK_UNPRESS
static final GameEvent
GameEvent.BLOCK_UNSWITCH
static final GameEvent
GameEvent.CONTAINER_CLOSE
static final GameEvent
GameEvent.CONTAINER_OPEN
static final GameEvent
GameEvent.DISPENSE_FAIL
static final GameEvent
GameEvent.DRINKING_FINISH
static final GameEvent
GameEvent.EAT
static final GameEvent
GameEvent.ELYTRA_FREE_FALL
static final GameEvent
GameEvent.ENTITY_DAMAGED
static final GameEvent
GameEvent.ENTITY_KILLED
static final GameEvent
GameEvent.ENTITY_PLACE
static final GameEvent
GameEvent.EQUIP
static final GameEvent
GameEvent.EXPLODE
static final GameEvent
GameEvent.FISHING_ROD_CAST
static final GameEvent
GameEvent.FISHING_ROD_REEL_IN
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.LIGHTNING_STRIKE
static final GameEvent
GameEvent.MINECART_MOVING
static final GameEvent
GameEvent.MOB_INTERACT
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.RAVAGER_ROAR
static final GameEvent
GameEvent.RING_BELL
static final GameEvent
GameEvent.SHEAR
static final GameEvent
GameEvent.SHULKER_CLOSE
static final GameEvent
GameEvent.SHULKER_OPEN
static final GameEvent
GameEvent.SPLASH
static final GameEvent
GameEvent.STEP
static final GameEvent
GameEvent.SWIM
static final GameEvent
GameEvent.WOLF_SHAKING
Modifier and TypeFieldDescriptionprivate final RegistryEntry.Reference<GameEvent>
GameEvent.registryEntry
-
Uses of GameEvent in net.minecraft.world.event.listener
Modifier and TypeMethodDescriptionvoid
SculkSensorListener.Callback.accept
(World world, GameEventListener listener, GameEvent event, int distance) Accepts a game event after delay.boolean
SculkSensorListener.Callback.accepts
(World world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity) Returns whether the callback wants to accept this event.void
Dispatches an event to all the listeners in this dispatcher.void
Dispatches an event to all the listeners in this dispatcher.private boolean
SimpleGameEventDispatcher.dispatchTo
(World world, GameEvent event, @Nullable Entity entity, BlockPos pos, GameEventListener listener) boolean
Listens to an incoming game event.boolean
Listens to an incoming game event.private void
private boolean
SculkSensorListener.shouldActivate
(GameEvent event, @Nullable Entity entity)