Class EntitySpawnEvent
java.lang.Object
dev.ultreon.mods.xinexlib.event.entity.EntitySpawnEvent
- All Implemented Interfaces:
EntityEvent,PositionEvent,LevelEvent,ServerLevelEvent,ServerEvent,Cancelable
- Direct Known Subclasses:
EntitySpawnEvent.ExistingSpawnEvent,EntitySpawnEvent.FreshSpawnEvent
public abstract class EntitySpawnEvent
extends Object
implements ServerLevelEvent, EntityEvent, Cancelable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEntitySpawnEvent(net.minecraft.server.level.ServerLevel level, net.minecraft.world.entity.Entity entity) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.ultreon.mods.xinexlib.event.entity.EntityEvent
getPositionMethods inherited from interface dev.ultreon.mods.xinexlib.event.level.ServerLevelEvent
getServer
-
Constructor Details
-
EntitySpawnEvent
protected EntitySpawnEvent(net.minecraft.server.level.ServerLevel level, net.minecraft.world.entity.Entity entity)
-
-
Method Details
-
getServerLevel
public net.minecraft.server.level.ServerLevel getServerLevel()- Specified by:
getServerLevelin interfaceServerLevelEvent
-
getLevel
public net.minecraft.server.level.ServerLevel getLevel()- Specified by:
getLevelin interfaceEntityEvent- Specified by:
getLevelin interfaceLevelEvent- Specified by:
getLevelin interfaceServerLevelEvent
-
getEntity
public net.minecraft.world.entity.Entity getEntity()- Specified by:
getEntityin interfaceEntityEvent
-
isCanceled
public boolean isCanceled()- Specified by:
isCanceledin interfaceCancelable
-
cancel
public void cancel()- Specified by:
cancelin interfaceCancelable
-