Uses of Record Class
net.minecraft.world.level.gameevent.GameEvent
Packages that use GameEvent
Package
Description
-
Uses of GameEvent in net.minecraft.client.multiplayer
Method parameters in net.minecraft.client.multiplayer with type arguments of type GameEventModifier and TypeMethodDescriptionvoidClientLevel.gameEvent(Holder<GameEvent> gameEvent, Vec3 pos, GameEvent.Context context) -
Uses of GameEvent in net.minecraft.client.renderer.debug
Fields in net.minecraft.client.renderer.debug with type parameters of type GameEventModifier and TypeFieldDescriptionprivate final ResourceKey<GameEvent> GameEventListenerRenderer.TrackedGameEvent.gameEventThe field for thegameEventrecord component.Methods in net.minecraft.client.renderer.debug that return types with arguments of type GameEventModifier and TypeMethodDescriptionGameEventListenerRenderer.TrackedGameEvent.gameEvent()Returns the value of thegameEventrecord component.Method parameters in net.minecraft.client.renderer.debug with type arguments of type GameEventModifier and TypeMethodDescriptionbooleanGameEventListenerRenderer.TrackedListener.handleGameEvent(ServerLevel level, Holder<GameEvent> gameEvent, GameEvent.Context context, Vec3 pos) voidGameEventListenerRenderer.trackGameEvent(ResourceKey<GameEvent> gameEvent, Vec3 position) Constructor parameters in net.minecraft.client.renderer.debug with type arguments of type GameEventModifierConstructorDescription(package private)TrackedGameEvent(long timeStamp, ResourceKey<GameEvent> gameEvent, Vec3 position) Creates an instance of aTrackedGameEventrecord class. -
Uses of GameEvent in net.minecraft.core.registries
Fields in net.minecraft.core.registries with type parameters of type GameEventModifier and TypeFieldDescriptionstatic final DefaultedRegistry<GameEvent> BuiltInRegistries.GAME_EVENTstatic final ResourceKey<Registry<GameEvent>> Registries.GAME_EVENT -
Uses of GameEvent in net.minecraft.data.tags
Fields in net.minecraft.data.tags with type parameters of type GameEventModifier and TypeFieldDescription(package private) static final List<ResourceKey<GameEvent>> GameEventTagsProvider.VIBRATIONS_EXCEPT_FLAP -
Uses of GameEvent in net.minecraft.network.protocol.common.custom
Fields in net.minecraft.network.protocol.common.custom with type parameters of type GameEventModifier and TypeFieldDescriptionprivate final ResourceKey<GameEvent> GameEventDebugPayload.gameEventTypeThe field for thegameEventTyperecord component.Methods in net.minecraft.network.protocol.common.custom that return types with arguments of type GameEventModifier and TypeMethodDescriptionGameEventDebugPayload.gameEventType()Returns the value of thegameEventTyperecord component.Constructor parameters in net.minecraft.network.protocol.common.custom with type arguments of type GameEventModifierConstructorDescriptionGameEventDebugPayload(ResourceKey<GameEvent> gameEventType, Vec3 pos) Creates an instance of aGameEventDebugPayloadrecord class. -
Uses of GameEvent in net.minecraft.network.protocol.game
Method parameters in net.minecraft.network.protocol.game with type arguments of type GameEventModifier and TypeMethodDescriptionstatic voidDebugPackets.sendGameEventInfo(Level level, Holder<GameEvent> gameEvent, Vec3 pos) -
Uses of GameEvent in net.minecraft.server.level
Method parameters in net.minecraft.server.level with type arguments of type GameEventModifier and TypeMethodDescriptionvoidServerLevel.gameEvent(Holder<GameEvent> gameEvent, Vec3 pos, GameEvent.Context context) voidWorldGenRegion.gameEvent(Holder<GameEvent> gameEvent, Vec3 pos, GameEvent.Context context) -
Uses of GameEvent in net.minecraft.tags
Fields in net.minecraft.tags with type parameters of type GameEventModifier and TypeFieldDescriptionGameEventTags.ALLAY_CAN_LISTENGameEventTags.IGNORE_VIBRATIONS_SNEAKINGGameEventTags.SHRIEKER_CAN_LISTENGameEventTags.VIBRATIONSGameEventTags.WARDEN_CAN_LISTENMethods in net.minecraft.tags that return types with arguments of type GameEvent -
Uses of GameEvent in net.minecraft.world.entity
Method parameters in net.minecraft.world.entity with type arguments of type GameEvent -
Uses of GameEvent in net.minecraft.world.entity.animal.allay
Methods in net.minecraft.world.entity.animal.allay that return types with arguments of type GameEventMethod parameters in net.minecraft.world.entity.animal.allay with type arguments of type GameEventModifier and TypeMethodDescriptionbooleanAllay.VibrationUser.canReceiveVibration(ServerLevel p_282038_, BlockPos p_283385_, Holder<GameEvent> p_316820_, GameEvent.Context p_282208_) booleanAllay.JukeboxListener.handleGameEvent(ServerLevel level, Holder<GameEvent> gameEvent, GameEvent.Context context, Vec3 pos) voidAllay.VibrationUser.onReceiveVibration(ServerLevel p_281422_, BlockPos p_281449_, Holder<GameEvent> p_316630_, Entity p_281794_, Entity p_281864_, float p_281642_) -
Uses of GameEvent in net.minecraft.world.entity.monster.warden
Methods in net.minecraft.world.entity.monster.warden that return types with arguments of type GameEventMethod parameters in net.minecraft.world.entity.monster.warden with type arguments of type GameEventModifier and TypeMethodDescriptionbooleanWarden.VibrationUser.canReceiveVibration(ServerLevel p_282574_, BlockPos p_282323_, Holder<GameEvent> p_316784_, GameEvent.Context p_282515_) voidWarden.VibrationUser.onReceiveVibration(ServerLevel p_281325_, BlockPos p_282386_, Holder<GameEvent> p_316139_, Entity p_281438_, Entity p_282582_, float p_283699_) -
Uses of GameEvent in net.minecraft.world.item.enchantment.effects
Fields in net.minecraft.world.item.enchantment.effects with type parameters of type GameEventModifier and TypeFieldDescriptionReplaceBlock.triggerGameEventThe field for thetriggerGameEventrecord component.ReplaceDisk.triggerGameEventThe field for thetriggerGameEventrecord component.SetBlockProperties.triggerGameEventThe field for thetriggerGameEventrecord component.Methods in net.minecraft.world.item.enchantment.effects that return types with arguments of type GameEventModifier and TypeMethodDescriptionReplaceBlock.triggerGameEvent()Returns the value of thetriggerGameEventrecord component.ReplaceDisk.triggerGameEvent()Returns the value of thetriggerGameEventrecord component.SetBlockProperties.triggerGameEvent()Returns the value of thetriggerGameEventrecord component.Constructor parameters in net.minecraft.world.item.enchantment.effects with type arguments of type GameEventModifierConstructorDescriptionSetBlockProperties(BlockItemStateProperties properties, Vec3i offset, Optional<Holder<GameEvent>> triggerGameEvent) Creates an instance of aSetBlockPropertiesrecord class. -
Uses of GameEvent in net.minecraft.world.level
Method parameters in net.minecraft.world.level with type arguments of type GameEventModifier and TypeMethodDescriptiondefault voidLevelAccessor.gameEvent(Holder<GameEvent> gameEvent, BlockPos pos, GameEvent.Context context) voidLevelAccessor.gameEvent(Holder<GameEvent> gameEvent, Vec3 pos, GameEvent.Context context) default voidLevelAccessor.gameEvent(ResourceKey<GameEvent> gameEvent, BlockPos pos, GameEvent.Context context) default voiddefault void -
Uses of GameEvent in net.minecraft.world.level.block.entity
Methods in net.minecraft.world.level.block.entity that return types with arguments of type GameEventMethod parameters in net.minecraft.world.level.block.entity with type arguments of type GameEventModifier and TypeMethodDescriptionbooleanCalibratedSculkSensorBlockEntity.VibrationUser.canReceiveVibration(ServerLevel level, BlockPos pos, Holder<GameEvent> gameEvent, GameEvent.Context context) booleanSculkSensorBlockEntity.VibrationUser.canReceiveVibration(ServerLevel level, BlockPos pos, Holder<GameEvent> gameEvent, GameEvent.Context context) booleanSculkShriekerBlockEntity.VibrationUser.canReceiveVibration(ServerLevel p_281256_, BlockPos p_281528_, Holder<GameEvent> p_316788_, GameEvent.Context p_282914_) booleanSculkCatalystBlockEntity.CatalystListener.handleGameEvent(ServerLevel level, Holder<GameEvent> gameEvent, GameEvent.Context context, Vec3 pos) voidSculkSensorBlockEntity.VibrationUser.onReceiveVibration(ServerLevel level, BlockPos pos, Holder<GameEvent> gameEvent, Entity entity, Entity playerEntity, float distance) voidSculkShriekerBlockEntity.VibrationUser.onReceiveVibration(ServerLevel p_283372_, BlockPos p_281679_, Holder<GameEvent> p_316155_, Entity p_282286_, Entity p_281384_, float p_283119_) -
Uses of GameEvent in net.minecraft.world.level.gameevent
Fields in net.minecraft.world.level.gameevent with type parameters of type GameEventModifier and TypeFieldDescriptionstatic final Holder.Reference<GameEvent> GameEvent.BLOCK_ACTIVATEstatic final Holder.Reference<GameEvent> GameEvent.BLOCK_ATTACHThis event is broadcast when a block is attached to another.static final Holder.Reference<GameEvent> GameEvent.BLOCK_CHANGEThis event is broadcast when a block is changed.static final Holder.Reference<GameEvent> GameEvent.BLOCK_CLOSEThis event is broadcast when a block such as a door, trap door, or gate is closed.static final Holder.Reference<GameEvent> GameEvent.BLOCK_DEACTIVATEstatic final Holder.Reference<GameEvent> GameEvent.BLOCK_DESTROYThis event is broadcast when a block is destroyed or picked up by an enderman.static final Holder.Reference<GameEvent> GameEvent.BLOCK_DETACHThis event is broadcast when a block is detached from another block.static final Holder.Reference<GameEvent> GameEvent.BLOCK_OPENThis event is broadcast when a block such as a door, trap door, or gate has been opened.static final Holder.Reference<GameEvent> GameEvent.BLOCK_PLACEThis event is broadcast when a block is placed in the world.GameEvent.CODECstatic final Holder.Reference<GameEvent> GameEvent.CONTAINER_CLOSEThis event is broadcast when a block with a storage inventory such as a chest or barrel is closed.static final Holder.Reference<GameEvent> GameEvent.CONTAINER_OPENThis event is broadcast when a block with a storage inventory such as a chest or barrel is opened.static final Holder.Reference<GameEvent> GameEvent.DRINKstatic final Holder.Reference<GameEvent> GameEvent.EATThis event is broadcast when an entity consumes food.static final Holder.Reference<GameEvent> GameEvent.ELYTRA_GLIDEstatic final Holder.Reference<GameEvent> GameEvent.ENTITY_ACTIONstatic final Holder.Reference<GameEvent> GameEvent.ENTITY_DAMAGEstatic final Holder.Reference<GameEvent> GameEvent.ENTITY_DIEstatic final Holder.Reference<GameEvent> GameEvent.ENTITY_DISMOUNTstatic final Holder.Reference<GameEvent> GameEvent.ENTITY_INTERACTstatic final Holder.Reference<GameEvent> GameEvent.ENTITY_MOUNTstatic final Holder.Reference<GameEvent> GameEvent.ENTITY_PLACEThis event is broadcast when an entity is artificially placed in the world using an item.static final Holder.Reference<GameEvent> GameEvent.EQUIPThis event is broadcast when an item is equipped to an entity or armor stand.static final Holder.Reference<GameEvent> GameEvent.EXPLODEThis event is broadcast when an entity such as a creeper, tnt, or a firework explodes.static final Holder.Reference<GameEvent> GameEvent.FLAPThis event is broadcast when a flying entity such as the ender dragon flaps its wings.static final Holder.Reference<GameEvent> GameEvent.FLUID_PICKUPThis event is broadcast when a fluid is picked up.static final Holder.Reference<GameEvent> GameEvent.FLUID_PLACEThis event is broadcast when fluid is placed.GameEvent.ListenerInfo.gameEventstatic final Holder.Reference<GameEvent> GameEvent.HIT_GROUNDThis event is broadcast when an entity falls far enough to take fall damage.static final Holder.Reference<GameEvent> GameEvent.INSTRUMENT_PLAYstatic final Holder.Reference<GameEvent> GameEvent.ITEM_INTERACT_FINISHstatic final Holder.Reference<GameEvent> GameEvent.ITEM_INTERACT_STARTstatic final Holder.Reference<GameEvent> GameEvent.JUKEBOX_PLAYstatic final Holder.Reference<GameEvent> GameEvent.JUKEBOX_STOP_PLAYstatic final Holder.Reference<GameEvent> GameEvent.LIGHTNING_STRIKEThis event is broadcast when lightning strikes a block.static final Holder.Reference<GameEvent> GameEvent.NOTE_BLOCK_PLAYstatic final Holder.Reference<GameEvent> GameEvent.PRIME_FUSEThis event is broadcast when an entity such as a creeper or TNT begins exploding.static final Holder.Reference<GameEvent> GameEvent.PROJECTILE_LANDThis event is broadcast when a projectile hits something.static final Holder.Reference<GameEvent> GameEvent.PROJECTILE_SHOOTThis event is broadcast when a projectile is fired.static final Holder.Reference<GameEvent> GameEvent.RESONATE_1static final Holder.Reference<GameEvent> GameEvent.RESONATE_10static final Holder.Reference<GameEvent> GameEvent.RESONATE_11static final Holder.Reference<GameEvent> GameEvent.RESONATE_12static final Holder.Reference<GameEvent> GameEvent.RESONATE_13static final Holder.Reference<GameEvent> GameEvent.RESONATE_14static final Holder.Reference<GameEvent> GameEvent.RESONATE_15static final Holder.Reference<GameEvent> GameEvent.RESONATE_2static final Holder.Reference<GameEvent> GameEvent.RESONATE_3static final Holder.Reference<GameEvent> GameEvent.RESONATE_4static final Holder.Reference<GameEvent> GameEvent.RESONATE_5static final Holder.Reference<GameEvent> GameEvent.RESONATE_6static final Holder.Reference<GameEvent> GameEvent.RESONATE_7static final Holder.Reference<GameEvent> GameEvent.RESONATE_8static final Holder.Reference<GameEvent> GameEvent.RESONATE_9static final Holder.Reference<GameEvent> GameEvent.SCULK_SENSOR_TENDRILS_CLICKINGstatic final Holder.Reference<GameEvent> GameEvent.SHEARThis event is broadcast when a shear is used.static final Holder.Reference<GameEvent> GameEvent.SHRIEKstatic final Holder.Reference<GameEvent> GameEvent.SPLASHThis event is broadcast wen an entity splashes in the water.static final Holder.Reference<GameEvent> GameEvent.STEPThis event is broadcast when an entity moves on the ground.static final Holder.Reference<GameEvent> GameEvent.SWIMThis event is broadcast as an entity swims around in water.static final Holder.Reference<GameEvent> GameEvent.TELEPORTstatic final Holder.Reference<GameEvent> GameEvent.UNEQUIPMethods in net.minecraft.world.level.gameevent that return types with arguments of type GameEventModifier and TypeMethodDescriptionGameEvent.ListenerInfo.gameEvent()private static Holder.Reference<GameEvent> private static Holder.Reference<GameEvent> Method parameters in net.minecraft.world.level.gameevent with type arguments of type GameEventModifier and TypeMethodDescriptionbooleanGameEventListener.handleGameEvent(ServerLevel level, Holder<GameEvent> gameEvent, GameEvent.Context context, Vec3 pos) voidGameEventDispatcher.post(Holder<GameEvent> gameEvent, Vec3 pos, GameEvent.Context context) booleanEuclideanGameEventListenerRegistry.visitInRangeListeners(Holder<GameEvent> gameEvent, Vec3 pos, GameEvent.Context context, GameEventListenerRegistry.ListenerVisitor visitor) booleanGameEventListenerRegistry.visitInRangeListeners(Holder<GameEvent> gameEvent, Vec3 pos, GameEvent.Context context, GameEventListenerRegistry.ListenerVisitor visitor) Constructor parameters in net.minecraft.world.level.gameevent with type arguments of type GameEventModifierConstructorDescriptionListenerInfo(Holder<GameEvent> gameEvent, Vec3 source, GameEvent.Context context, GameEventListener recipient, Vec3 pos) -
Uses of GameEvent in net.minecraft.world.level.gameevent.vibrations
Fields in net.minecraft.world.level.gameevent.vibrations with type parameters of type GameEventModifier and TypeFieldDescriptionVibrationInfo.gameEventThe field for thegameEventrecord component.static final List<ResourceKey<GameEvent>> VibrationSystem.RESONANCE_EVENTSstatic final ToIntFunction<ResourceKey<GameEvent>> VibrationSystem.VIBRATION_FREQUENCY_FOR_EVENTDeprecated.Methods in net.minecraft.world.level.gameevent.vibrations that return types with arguments of type GameEventModifier and TypeMethodDescriptionVibrationInfo.gameEvent()Returns the value of thegameEventrecord component.VibrationSystem.User.getListenableEvents()static ResourceKey<GameEvent> VibrationSystem.getResonanceEventByFrequency(int frequency) Method parameters in net.minecraft.world.level.gameevent.vibrations with type arguments of type GameEventModifier and TypeMethodDescriptionbooleanVibrationSystem.User.canReceiveVibration(ServerLevel level, BlockPos pos, Holder<GameEvent> gameEvent, GameEvent.Context context) voidVibrationSystem.Listener.forceScheduleVibration(ServerLevel level, Holder<GameEvent> gameEvent, GameEvent.Context context, Vec3 pos) static intVibrationSystem.getGameEventFrequency(Holder<GameEvent> gameEvent) static intVibrationSystem.getGameEventFrequency(ResourceKey<GameEvent> eventKey) booleanVibrationSystem.Listener.handleGameEvent(ServerLevel level, Holder<GameEvent> gameEvent, GameEvent.Context context, Vec3 pos) default booleanVibrationSystem.User.isValidVibration(Holder<GameEvent> gameEvent, GameEvent.Context context) voidVibrationSystem.User.onReceiveVibration(ServerLevel level, BlockPos pos, Holder<GameEvent> gameEvent, Entity entity, Entity playerEntity, float distance) private voidVibrationSystem.Listener.scheduleVibration(ServerLevel level, VibrationSystem.Data data, Holder<GameEvent> gameEvent, GameEvent.Context context, Vec3 pos, Vec3 sensorPos) Constructor parameters in net.minecraft.world.level.gameevent.vibrations with type arguments of type GameEventModifierConstructorDescriptionVibrationInfo(Holder<GameEvent> p_316546_, float p_251086_, Vec3 p_250935_, UUID p_316193_, UUID p_316157_) VibrationInfo(Holder<GameEvent> gameEvent, float distance, Vec3 pos, UUID uuid, UUID projectileOwnerUuid, Entity entity) Creates an instance of aVibrationInforecord class.VibrationInfo(Holder<GameEvent> p_316851_, float p_250190_, Vec3 p_251692_, Entity p_316868_) -
Uses of GameEvent in net.neoforged.neoforge.common
Method parameters in net.neoforged.neoforge.common with type arguments of type GameEventModifier and TypeMethodDescriptionstatic booleanCommonHooks.onVanillaGameEvent(Level level, Holder<GameEvent> vanillaEvent, Vec3 pos, GameEvent.Context context) -
Uses of GameEvent in net.neoforged.neoforge.event
Fields in net.neoforged.neoforge.event with type parameters of type GameEventMethods in net.neoforged.neoforge.event that return types with arguments of type GameEventConstructor parameters in net.neoforged.neoforge.event with type arguments of type GameEventModifierConstructorDescriptionVanillaGameEvent(Level level, Holder<GameEvent> vanillaEvent, Vec3 position, GameEvent.Context context) -
Uses of GameEvent in net.neoforged.neoforge.registries.datamaps.builtin
Fields in net.neoforged.neoforge.registries.datamaps.builtin with type parameters of type GameEventModifier and TypeFieldDescriptionstatic final DataMapType<GameEvent, VibrationFrequency> NeoForgeDataMaps.VIBRATION_FREQUENCIESThe GameEvent data map that replacesVibrationSystem.VIBRATION_FREQUENCY_FOR_EVENT.
data mapinstead.