Uses of Record Class
net.minecraft.world.event.GameEvent.Emitter
Packages that use GameEvent.Emitter
Package
Description
-
Uses of GameEvent.Emitter in net.minecraft.block.entity
Methods in net.minecraft.block.entity with parameters of type GameEvent.EmitterModifier 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
Methods in net.minecraft.client.world with parameters of type GameEvent.EmitterModifier and TypeMethodDescriptionvoid
ClientWorld.emitGameEvent
(GameEvent event, Vec3d emitterPos, GameEvent.Emitter emitter) Emits a game event. -
Uses of GameEvent.Emitter in net.minecraft.entity.mob
Methods in net.minecraft.entity.mob with parameters of type GameEvent.EmitterModifier 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
Methods in net.minecraft.entity.passive with parameters of type GameEvent.EmitterModifier 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
Methods in net.minecraft.server.world with parameters of type GameEvent.EmitterModifier and TypeMethodDescriptionvoid
ServerWorld.emitGameEvent
(GameEvent event, Vec3d emitterPos, GameEvent.Emitter emitter) Emits a game event. -
Uses of GameEvent.Emitter in net.minecraft.world
Methods in net.minecraft.world with parameters of type GameEvent.EmitterModifier 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
Fields in net.minecraft.world.event declared as GameEvent.EmitterMethods in net.minecraft.world.event that return GameEvent.EmitterModifier 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) Constructors in net.minecraft.world.event with parameters of type GameEvent.EmitterModifierConstructorDescriptionMessage
(GameEvent event, Vec3d emitterPos, GameEvent.Emitter emitter, GameEventListener listener, Vec3d listenerPos) -
Uses of GameEvent.Emitter in net.minecraft.world.event.listener
Methods in net.minecraft.world.event.listener with parameters of type GameEvent.EmitterModifier 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)