Package net.minecraftforge.event
Class VanillaGameEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.VanillaGameEvent
public class VanillaGameEvent
extends net.minecraftforge.eventbus.api.Event
VanillaGameEvent is fired on the server whenever one of Vanilla's 
 
This allows for listening to Vanilla's events in a more structured and global way that is not tied to needing a block entity listener.
 
This event is fired on the
 
Cancel this event to prevent Vanilla from posting the
GameEvents fire. This allows for listening to Vanilla's events in a more structured and global way that is not tied to needing a block entity listener.
This event is fired on the
MinecraftForge.EVENT_BUS. Cancel this event to prevent Vanilla from posting the
GameEvent to all nearby GameEventListeners.- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Eventnet.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final GameEvent.Contextprivate final Levelprivate final Vec3private final GameEvent
- 
Constructor SummaryConstructorsConstructorDescriptionVanillaGameEvent(Level level, GameEvent vanillaEvent, Vec3 position, GameEvent.Context context) 
- 
Method SummaryMethods inherited from class net.minecraftforge.eventbus.api.EventgetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
- 
Field Details- 
level
- 
vanillaEvent
- 
position
- 
context
 
- 
- 
Constructor Details- 
VanillaGameEventpublic VanillaGameEvent(Level level, GameEvent vanillaEvent, Vec3 position, GameEvent.Context context) 
 
- 
- 
Method Details