src/main/java/com/github/klikli_dev/occultism/common/ritual/SummonRitual.java
/**
     * Spawns the given entity and notifies nearby players.
     *
     * @param entity the entity to spawn
     * @param world  the world to spawn in.
     */
Spawns the given entity and notifies nearby players.
@param entity the entity to spawn
@param world  the world to spawn in.
Spawns the given entity and notifies nearby players . @param entity the entity to spawn @param world the world to spawn in .
public void spawnEntity(Entity entity, World world) {
        for (ServerPlayerEntity player : world.getEntitiesOfClass(ServerPlayerEntity.class,
                entity.getBoundingBox().inflate(50)))
            CriteriaTriggers.SUMMONED_ENTITY.trigger(player, entity);
        world.addFreshEntity(entity);
    }
public void spawnEntity ( Entity entity , World world ) { for ( ServerPlayerEntity player : world . getEntitiesOfClass ( ServerPlayerEntity . class , entity . getBoundingBox ( ) . inflate ( 50 ) ) ) CriteriaTriggers . SUMMONED_ENTITY . trigger ( player , entity ) ; world . addFreshEntity ( entity ) ; }
Spawns the given entity and notifies nearby players.
Spawns the given entity and notifies nearby players .