-
Notifications
You must be signed in to change notification settings - Fork 0
EntityBuilder
Nont Nonnipat edited this page Dec 18, 2024
·
2 revisions
You can setup an entity using EntityBuilder.
- EntityBuilder has provided the way to initialize an Entity without spawning it into world.
- Using EntityBuilder to spawn an entity is Easier than using Bukkit spawning way.
// Rest of the Code.
EntityBuilder exZombieEntity = new EntityBuilder(EntityType.ALLAY).setPersistent(true);
exZombieEntity.spawn(new Location(Bukkit.getWorld("world"), 0, 0, 0));
// Rest of the Code.
-
addPassenger(Entity entity)
-
addScoreboardTag(String[] tag)
-
setFireTicks(int i)
-
setGlowing(boolean bool)
-
setInvulnerable(boolean bool)
-
setSilent(boolean bool)
-
hasGravity(boolean bool)
-
setVelocity(Vector vec)
-
setPersistent(Boolean bool)
-
setFreezingTicks(int i)
-
setCustomNameVisible(Boolean bool)
-
setPortalCooldown(int i)
-
setFallingDistance(float f)
-
setRotation(float yaw, float pitch)
-
setTicksLived(int i)
-
setVisibleByDefault(boolean bool)
-
setVisualFire(boolean bool)
-
spawn(Location loc)
-
spawn(World world, double x, double y, double z)
EntityBuilder addPassenger(Entity entity)
Add passenger to an entity Vehicle
Parameter: entity - passenger
Returns: EntityBuilder
Coming soon full version on 2025!
Coming soon full version on 2025!