Uses of Record Class
net.minecraft.world.event.GameEvent.Emitter
Package
Description
-
Uses of GameEvent.Emitter in net.minecraft.block.entity
Modifier and TypeMethodDescriptionboolean
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.Emitter in net.minecraft.client.world
Modifier and TypeMethodDescriptionvoid
ClientWorld.emitGameEvent
(GameEvent event, Vec3d emitterPos, GameEvent.Emitter emitter) Emits a game event. -
Uses of GameEvent.Emitter in net.minecraft.entity.mob
Modifier and TypeMethodDescriptionboolean
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.Emitter in net.minecraft.entity.passive
Modifier and TypeMethodDescriptionboolean
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.Emitter in net.minecraft.server.world
Modifier and TypeMethodDescriptionvoid
ServerWorld.emitGameEvent
(GameEvent event, Vec3d emitterPos, GameEvent.Emitter emitter) Emits a game event. -
Uses of GameEvent.Emitter in net.minecraft.world
Modifier and TypeMethodDescriptionvoid
ChunkRegion.emitGameEvent
(GameEvent event, Vec3d emitterPos, GameEvent.Emitter emitter) Emits a game event.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.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) ModifierConstructorDescriptionMessage
(GameEvent event, Vec3d emitterPos, GameEvent.Emitter emitter, GameEventListener listener, Vec3d listenerPos) -
Uses of GameEvent.Emitter in net.minecraft.world.event.listener
Modifier and TypeMethodDescriptionboolean
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)