Uses of Record Class
net.minecraft.world.event.GameEvent.Emitter
Package
Description
-
Uses of GameEvent.Emitter in net.minecraft.block.entity
Modifier and TypeMethodDescriptionboolean
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.Emitter in net.minecraft.client.render.debug
Modifier and TypeMethodDescriptionboolean
GameEventDebugRenderer.Listener.listen
(ServerWorld world, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter, Vec3d emitterPos) Listens to an incoming game event. -
Uses of GameEvent.Emitter 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.Emitter in net.minecraft.entity.mob
Modifier and TypeMethodDescriptionboolean
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.Emitter in net.minecraft.entity.passive
Modifier and TypeMethodDescriptionboolean
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.Emitter 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.Emitter 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
(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.Emitter in net.minecraft.world.event
Modifier and TypeMethodDescriptionGameEvent.Message.getEmitter()
static GameEvent.Emitter
GameEvent.Emitter.of
(@Nullable BlockState affectedState) static GameEvent.Emitter
static GameEvent.Emitter
GameEvent.Emitter.of
(@Nullable Entity sourceEntity, @Nullable BlockState affectedState) Modifier and TypeMethodDescriptionboolean
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) 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) ModifierConstructorDescriptionMessage
(RegistryEntry<GameEvent> event, Vec3d emitterPos, GameEvent.Emitter emitter, GameEventListener listener, Vec3d listenerPos) -
Uses of GameEvent.Emitter in net.minecraft.world.event.listener
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.