Interface EntityEvent.Add
- Enclosing interface:
 - EntityEvent
 
public static interface EntityEvent.Add
- 
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.InteractionResultadd(net.minecraft.world.entity.Entity entity, net.minecraft.world.level.Level world) Invoked when an entity is about to be added to the world. 
- 
Method Details
- 
add
net.minecraft.world.InteractionResult add(net.minecraft.world.entity.Entity entity, net.minecraft.world.level.Level world) Invoked when an entity is about to be added to the world. Equivalent to Forge'sEntityJoinWorldEventevent.- Parameters:
 entity- The entity to add to the level.world- The level the entity is added to.- Returns:
 - Returning 
InteractionResult.FAILprevents the addition of the entity to the world. 
 
 -