public interface

SampObjectFactory

net.gtaun.shoebill.SampObjectFactory
Known Indirect Subclasses

Summary

Public Methods
abstract Actor createActor(int modelid, Vector3D position, float angle)
Creates a actor with params.
abstract Actor createActor(int modelid, float x, float y, float z, float angle)
Creates a actor with params
abstract DialogId createDialogId(EventHandler<DialogResponseEvent> onResponse)
Create a DialogId.
abstract DialogId createDialogId(EventHandler<DialogResponseEvent> onResponse, EventHandler<DialogShowEvent> onShow, EventHandler<DialogCloseEvent> onClose)
Create a DialogId.
abstract DialogId createDialogId()
Create a DialogId.
abstract Label createLabel(String text, Color color, Vector3D pos, int worldId, float drawDistance, boolean testLOS)
Create a Label with params.
abstract Label createLabel(String text, Color color, Location loc, float drawDistance, boolean testLOS)
Create a Label with params.
abstract Label createLabel(String text, Color color, float x, float y, float z, int worldId, float drawDistance, boolean testLOS)
Create a Label with params.
abstract Menu createMenu(String title, int columns, Vector2D pos, float col1Width, float col2Width)
Create a Menu with params.
abstract Menu createMenu(String title, int columns, float x, float y, float col1Width, float col2Width)
Create a Menu with params.
abstract SampObject createObject(int modelId, float x, float y, float z, float rx, float ry, float rz)
Create a SampObject with params.
abstract SampObject createObject(int modelId, Location loc, Vector3D rot)
Create a SampObject with params.
abstract SampObject createObject(int modelId, float x, float y, float z, float rx, float ry, float rz, float drawDistance)
Create a SampObject with params.
abstract SampObject createObject(int modelId, Location loc, Vector3D rot, float drawDistance)
Create a SampObject with params.
abstract SampObject createObject(int modelId, Location loc, float rx, float ry, float rz, float drawDistance)
Create a SampObject with params.
abstract SampObject createObject(int modelId, Location loc, float rx, float ry, float rz)
Create a SampObject with params.
abstract Pickup createPickup(int modelId, int type, Location loc, EventHandler<PlayerPickupEvent> event)
Create a Pickup with params.
abstract Pickup createPickup(int modelId, int type, float x, float y, float z, EventHandler<PlayerPickupEvent> event)
Create a Pickup with params.
abstract Pickup createPickup(int modelId, int type, Location loc)
Create a Pickup with params.
abstract Pickup createPickup(int modelId, int type, float x, float y, float z, int worldId, EventHandler<PlayerPickupEvent> event)
Create a Pickup with params.
abstract Pickup createPickup(int modelId, int type, float x, float y, float z, int worldId)
Create a Pickup with params.
abstract Pickup createPickup(int modelId, int type, float x, float y, float z)
Create a Pickup with params.
abstract PlayerLabel createPlayerLabel(Player player, String text, Color color, Location loc, float drawDistance, boolean testLOS, Player attachedPlayer)
Create a Label which is only visible for one player, with params.
abstract PlayerLabel createPlayerLabel(Player player, String text, Color color, Location loc, float drawDistance, boolean testLOS)
Create a Label which is only visible for one player, with params.
abstract PlayerLabel createPlayerLabel(Player player, String text, Color color, Location loc, float drawDistance, boolean testLOS, Vehicle attachedVehicle)
Create a Label which is only visible for one player, with params.
abstract PlayerLabel createPlayerLabel(Player player, String text, Color color, float x, float y, float z, int worldId, float drawDistance, boolean testLOS)
Create a Label which is only visible for one player, with params.
abstract PlayerLabel createPlayerLabel(Player player, String text, Color color, float x, float y, float z, float drawDistance, boolean testLOS)
Create a Label which is only visible for one player, with params.
abstract PlayerObject createPlayerObject(Player player, int modelId, Location loc, float rx, float ry, float rz, float drawDistance)
Create a SampObject for Player with params.
abstract PlayerObject createPlayerObject(Player player, int modelId, float x, float y, float z, float rx, float ry, float rz)
Create a SampObject for Player with params.
abstract PlayerObject createPlayerObject(Player player, int modelId, float x, float y, float z, float rx, float ry, float rz, float drawDistance)
Create a SampObject for Player with params.
abstract PlayerObject createPlayerObject(Player player, int modelId, Location loc, Vector3D rot, float drawDistance)
Create a SampObject for Player with params.
abstract PlayerObject createPlayerObject(Player player, int modelId, Location loc, float rx, float ry, float rz)
Create a SampObject for Player with params.
abstract PlayerObject createPlayerObject(Player player, int modelId, Location loc, Vector3D rot)
Create a SampObject for Player with params.
abstract PlayerTextdraw createPlayerTextdraw(Player player, Vector2D pos, String text)
Create a Textdraw which is only visible for one player, with params.
abstract PlayerTextdraw createPlayerTextdraw(Player player, float x, float y)
Create a Textdraw which is only visible for one player, with params.
abstract PlayerTextdraw createPlayerTextdraw(Player player, Vector2D pos)
Create a Textdraw which is only visible for one player, with params.
abstract PlayerTextdraw createPlayerTextdraw(Player player, float x, float y, String text)
Create a Textdraw which is only visible for one player, with params.
abstract Textdraw createTextdraw(float x, float y, String text)
Create a Textdraw with params.
abstract Textdraw createTextdraw(float x, float y)
Create a Textdraw with params.
abstract Textdraw createTextdraw(Vector2D pos, String text)
Create a Textdraw with params.
abstract Textdraw createTextdraw(Vector2D pos)
Create a Textdraw with params.
abstract Timer createTimer(int interval, int count, Timer.TimerCallback callback)
Create a Timer with params.
abstract Timer createTimer(int interval, int count)
Create a Timer with params.
abstract Timer createTimer(int interval)
Create a Timer with params.
abstract Timer createTimer(int interval, Timer.TimerCallback callback)
Create a Timer with params.
abstract Vehicle createVehicle(int modelId, Vector3D pos, float angle, int color1, int color2, int respawnDelay)
Create a Vehicle with params.
abstract Vehicle createVehicle(int modelId, float x, float y, float z, float angle, int color1, int color2, int respawnDelay)
Create a Vehicle with params.
abstract Vehicle createVehicle(int modelId, float x, float y, float z, int interiorId, int worldId, float angle, int color1, int color2, int respawnDelay)
Create a Vehicle with params.
abstract Vehicle createVehicle(int modelId, AngledLocation loc, int color1, int color2, int respawnDelay, boolean addsiren)
Create a Vehicle with 1 params.
abstract Vehicle createVehicle(int modelId, Vector3D pos, int interiorId, int worldId, float angle, int color1, int color2, int respawnDelay)
Create a Vehicle with params.
abstract Vehicle createVehicle(int modelId, Location loc, float angle, int color1, int color2, int respawnDelay, boolean addsiren)
Create a Vehicle with params.
abstract Zone createZone(Area area)
Create a Zone with params.
abstract Zone createZone(float minX, float minY, float maxX, float maxY)
Create a Zone with params.

Public Methods

public abstract Actor createActor (int modelid, Vector3D position, float angle)

Creates a actor with params.

Parameters
modelid Modelid of the skin
position Where the actor should stand
angle In which angle the actor should stand
Returns
  • The created actor

public abstract Actor createActor (int modelid, float x, float y, float z, float angle)

Creates a actor with params

Parameters
modelid Modelid of the skin
x X-Pos where the actor should stand
y Y-Pos where the actor should stand
z Z-Pos where the actor should stand
angle In which angle the actor should stand
Returns
  • The created actor

public abstract DialogId createDialogId (EventHandler<DialogResponseEvent> onResponse)

Create a DialogId. If the Creation fails, it will throw a CreationFailedException.

Returns
  • The created DialogId.

public abstract DialogId createDialogId (EventHandler<DialogResponseEvent> onResponse, EventHandler<DialogShowEvent> onShow, EventHandler<DialogCloseEvent> onClose)

Create a DialogId. If the Creation fails, it will throw a CreationFailedException.

Returns
  • The created DialogId.

public abstract DialogId createDialogId ()

Create a DialogId. If the Creation fails, it will throw a CreationFailedException.

Returns
  • The created DialogId.

public abstract Label createLabel (String text, Color color, Vector3D pos, int worldId, float drawDistance, boolean testLOS)

Create a Label with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
text The displayed Text.
color The color of the Label.
pos Vector3D-Pos where the Label should be.
worldId Worldid where the Label should be.
drawDistance The Drawdistance of the Label.
testLOS If the Label can be seen through objects.
Returns
  • The created Label.

public abstract Label createLabel (String text, Color color, Location loc, float drawDistance, boolean testLOS)

Create a Label with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
text The displayed Text.
color The color of the Label.
loc Location where the Label should be.
drawDistance The Drawdistance of the Label.
testLOS If the Label can be seen through objects.
Returns
  • The created Label.

public abstract Label createLabel (String text, Color color, float x, float y, float z, int worldId, float drawDistance, boolean testLOS)

Create a Label with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
text The displayed Text.
color The color of the Label.
x X-Pos where the Label should be.
y Y-Pos where the Label should be.
z Z-Pos where the Label should be.
worldId Worldid where the Label should be.
drawDistance The Drawdistance of the Label.
testLOS If the Label can be seen through objects.
Returns
  • The created Label.

public abstract Menu createMenu (String title, int columns, Vector2D pos, float col1Width, float col2Width)

Create a Menu with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
title The Title of the menu.
columns The amount of columns.
pos Vector2D-Position where the Menu should appear.
col1Width The Columnwidth of column 1.
col2Width The Columnwidth of column 2.
Returns
  • The created Menu.

public abstract Menu createMenu (String title, int columns, float x, float y, float col1Width, float col2Width)

Create a Menu with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
title The Title of the menu.
columns The amount of columns.
x X-Pos where the Menu should appear.
y Y-Pos where the Menu should appear.
col1Width The Columnwidth of column 1.
col2Width The Columnwidth of column 2.
Returns
  • The created Menu.

public abstract SampObject createObject (int modelId, float x, float y, float z, float rx, float ry, float rz)

Create a SampObject with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
modelId Modelid of the Object.
x X-Pos where the Object should be.
y Y-Pos where the Object should be.
z Z-Pos where the Object should be.
rx Rotation-X where the Object should be.
ry Rotation-Y where the Object should be.
rz Rotation-Z where the Object should be.
Returns
  • The created SampObject.

public abstract SampObject createObject (int modelId, Location loc, Vector3D rot)

Create a SampObject with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
modelId Modelid of the Object.
loc Location where the Object should be.
rot Rotation-Position where the Object should be.
Returns
  • The created SampObject.

public abstract SampObject createObject (int modelId, float x, float y, float z, float rx, float ry, float rz, float drawDistance)

Create a SampObject with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
modelId Modelid of the Object.
x X-Pos where the Object should be.
y Y-Pos where the Object should be.
z Z-Pos where the Object should be.
rx Rotation-X where the Object should be.
ry Rotation-Y where the Object should be.
rz Rotation-Z where the Object should be.
drawDistance The Drawdistance of the Object.
Returns
  • The created SampObject.

public abstract SampObject createObject (int modelId, Location loc, Vector3D rot, float drawDistance)

Create a SampObject with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
modelId Modelid of the Object.
loc Location where the Object should be.
rot The Rotation of the Object.
drawDistance The Drawdistance of the Object.
Returns
  • The created SampObject.

public abstract SampObject createObject (int modelId, Location loc, float rx, float ry, float rz, float drawDistance)

Create a SampObject with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
modelId Modelid of the Object.
loc Location where the Object should be.
rx Rotation-X where the Object should be.
ry Rotation-Y where the Object should be.
rz Rotation-Z where the Object should be.
drawDistance The Drawdistance of the Object.
Returns
  • The created SampObject.

public abstract SampObject createObject (int modelId, Location loc, float rx, float ry, float rz)

Create a SampObject with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
modelId Modelid of the Object.
loc Location where the Object should be.
rx Rotation-X where the Object should be.
ry Rotation-Y where the Object should be.
rz Rotation-Z where the Object should be.
Returns
  • The created SampObject.

public abstract Pickup createPickup (int modelId, int type, Location loc, EventHandler<PlayerPickupEvent> event)

Create a Pickup with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
modelId Modelid of the Pickup.
type Type of the Pickup.
loc Location where the Pickup should be.
event The called event.
Returns
  • The created Pickup.

public abstract Pickup createPickup (int modelId, int type, float x, float y, float z, EventHandler<PlayerPickupEvent> event)

Create a Pickup with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
modelId Modelid of the Pickup.
type Type of the Pickup.
x X-Pos where the Pickup should be.
y Y-Pos where the Pickup should be.
z Z-Pos where the Pickup should be.
event The called event
Returns
  • The created Pickup.

public abstract Pickup createPickup (int modelId, int type, Location loc)

Create a Pickup with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
modelId Modelid of the Pickup.
type Type of the Pickup.
loc Location where the Pickup should be.
Returns
  • The created Pickup.

public abstract Pickup createPickup (int modelId, int type, float x, float y, float z, int worldId, EventHandler<PlayerPickupEvent> event)

Create a Pickup with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
modelId Modelid of the Pickup.
type Type of the Pickup.
x X-Pos where the Pickup should be.
y Y-Pos where the Pickup should be.
z Z-Pos where the Pickup should be.
worldId Worldid where the Pickup should be.
event The called event.
Returns
  • The created Pickup.

public abstract Pickup createPickup (int modelId, int type, float x, float y, float z, int worldId)

Create a Pickup with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
modelId Modelid of the Pickup.
type Type of the Pickup.
x X-Pos where the Pickup should be.
y Y-Pos where the Pickup should be.
z Z-Pos where the Pickup should be.
worldId Worldid where the Pickup should be.
Returns
  • The created Pickup.

public abstract Pickup createPickup (int modelId, int type, float x, float y, float z)

Create a Pickup with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
modelId Modelid of the Pickup.
type Type of the Pickup.
x X-Pos where the Pickup should be.
y Y-Pos where the Pickup should be.
z Z-Pos where the Pickup should be.
Returns
  • The created Pickup.

public abstract PlayerLabel createPlayerLabel (Player player, String text, Color color, Location loc, float drawDistance, boolean testLOS, Player attachedPlayer)

Create a Label which is only visible for one player, with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
player The Player who sees the Label.
text The displayed Text.
color The color of the Label.
loc Location where the Label should be.
drawDistance The Drawdistance of the Label.
testLOS If the Label can be seen through objects.
attachedPlayer The Player where the Label should be attached.
Returns
  • The created PlayerLabel.

public abstract PlayerLabel createPlayerLabel (Player player, String text, Color color, Location loc, float drawDistance, boolean testLOS)

Create a Label which is only visible for one player, with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
player The Player who sees the Label.
text The displayed Text.
color The color of the Label.
loc Location where the Label should be.
drawDistance The Drawdistance of the Label.
testLOS If the Label can be seen through objects.
Returns
  • The created PlayerLabel.

public abstract PlayerLabel createPlayerLabel (Player player, String text, Color color, Location loc, float drawDistance, boolean testLOS, Vehicle attachedVehicle)

Create a Label which is only visible for one player, with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
player The Player who sees the Label.
text The displayed Text.
color The color of the Label.
loc Location where the Label should be.
drawDistance The Drawdistance of the Label.
testLOS If the Label can be seen through objects.
attachedVehicle The Vehicle where the Label should be attached.
Returns
  • The created PlayerLabel.

public abstract PlayerLabel createPlayerLabel (Player player, String text, Color color, float x, float y, float z, int worldId, float drawDistance, boolean testLOS)

Create a Label which is only visible for one player, with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
player The Player who sees the Label.
text The displayed Text.
color The color of the Label.
x X-Pos where the Label should be.
y Y-Pos where the Label should be.
z Z-Pos where the Label should be.
worldId Worldid where the Label should be.
drawDistance The Drawdistance of the Label.
testLOS If the Label can be seen through objects.
Returns
  • The created PlayerLabel.

public abstract PlayerLabel createPlayerLabel (Player player, String text, Color color, float x, float y, float z, float drawDistance, boolean testLOS)

Create a Label which is only visible for one player, with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
player The Player who sees the Label.
text The displayed Text.
color The color of the Label.
x X-Pos where the Label should be.
y Y-Pos where the Label should be.
z Z-Pos where the Label should be.
drawDistance The Drawdistance of the Label.
testLOS If the Label can be seen through objects.
Returns
  • The created PlayerLabel.

public abstract PlayerObject createPlayerObject (Player player, int modelId, Location loc, float rx, float ry, float rz, float drawDistance)

Create a SampObject for Player with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
player The Player who sees the Object.
modelId Modelid of the Object.
loc Location where the Object should be.
rx Rotation-X where the Object should be.
ry Rotation-Y where the Object should be.
rz Rotation-Z where the Object should be.
drawDistance The Drawdistance of the Object.
Returns
  • The created PlayerObject.

public abstract PlayerObject createPlayerObject (Player player, int modelId, float x, float y, float z, float rx, float ry, float rz)

Create a SampObject for Player with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
player The Player who sees the Object.
modelId Modelid of the Object.
x X-Pos where the Object should be.
y Y-Pos where the Object should be.
z Z-Pos where the Object should be.
rx Rotation-X where the Object should be.
ry Rotation-Y where the Object should be.
rz Rotation-Z where the Object should be.
Returns
  • The created PlayerObject.

public abstract PlayerObject createPlayerObject (Player player, int modelId, float x, float y, float z, float rx, float ry, float rz, float drawDistance)

Create a SampObject for Player with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
player The Player who sees the Object.
modelId Modelid of the Object.
x X-Pos where the Object should be.
y Y-Pos where the Object should be.
z Z-Pos where the Object should be.
rx Rotation-X where the Object should be.
ry Rotation-Y where the Object should be.
rz Rotation-Z where the Object should be.
drawDistance The Drawdistance of the Object.
Returns
  • The created PlayerObject.

public abstract PlayerObject createPlayerObject (Player player, int modelId, Location loc, Vector3D rot, float drawDistance)

Create a SampObject for Player with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
player The Player who sees the Object.
modelId Modelid of the Object.
loc Location where the Object should be.
rot Rotation-Position where the Object should be.
drawDistance The Drawdistance of the Object.
Returns
  • The created PlayerObject.

public abstract PlayerObject createPlayerObject (Player player, int modelId, Location loc, float rx, float ry, float rz)

Create a SampObject for Player with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
player The Player who sees the Object.
modelId Modelid of the Object.
loc Location where the Object should be.
rx Rotation-X where the Object should be.
ry Rotation-Y where the Object should be.
rz Rotation-Z where the Object should be.
Returns
  • The created PlayerObject.

public abstract PlayerObject createPlayerObject (Player player, int modelId, Location loc, Vector3D rot)

Create a SampObject for Player with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
player The Player who sees the Object.
modelId Modelid of the Object.
loc Location where the Object should be.
rot Rotation-Position where the Object should be.
Returns
  • The created PlayerObject.

public abstract PlayerTextdraw createPlayerTextdraw (Player player, Vector2D pos, String text)

Create a Textdraw which is only visible for one player, with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
player The Player who sees the Textdraw.
pos Vector2D-Position where the Textdraw should be.
text The displayed Text.
Returns
  • The created PlayerTextdraw.

public abstract PlayerTextdraw createPlayerTextdraw (Player player, float x, float y)

Create a Textdraw which is only visible for one player, with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
player The Player who sees the Textdraw.
x X-Pos where the Textdraw should be.
y Y-Pos where the Textdraw should be.
Returns
  • The created PlayerTextdraw.

public abstract PlayerTextdraw createPlayerTextdraw (Player player, Vector2D pos)

Create a Textdraw which is only visible for one player, with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
player The Player who sees the Textdraw.
pos Vector2D-Position where the Textdraw should be.
Returns
  • The created PlayerTextdraw.

public abstract PlayerTextdraw createPlayerTextdraw (Player player, float x, float y, String text)

Create a Textdraw which is only visible for one player, with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
player The Player who sees the Textdraw.
x X-Pos where the Textdraw should be.
y Y-Pos where the Textdraw should be.
text The displayed Text.
Returns
  • The created PlayerTextdraw.

public abstract Textdraw createTextdraw (float x, float y, String text)

Create a Textdraw with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
x X-Pos where the Textdraw should be.
y Y-Pos where the Textdraw should be.
text The displayed Text.
Returns
  • The created Textdraw.

public abstract Textdraw createTextdraw (float x, float y)

Create a Textdraw with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
x X-Pos where the Textdraw should be.
y Y-Pos where the Textdraw should be.
Returns
  • The created Textdraw.

public abstract Textdraw createTextdraw (Vector2D pos, String text)

Create a Textdraw with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
pos Vector2D-Position where the Textdraw should be.
text The displayed Text.
Returns
  • The created Textdraw.

public abstract Textdraw createTextdraw (Vector2D pos)

Create a Textdraw with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
pos Vector2D-Position where the Textdraw should be.
Returns
  • The created Textdraw.

public abstract Timer createTimer (int interval, int count, Timer.TimerCallback callback)

Create a Timer with params.

Parameters
interval The interval in miliseconds.
count How often the Timer will get called.
callback The callback which will get invoked after the interval.
Returns
  • The created Timer.

public abstract Timer createTimer (int interval, int count)

Create a Timer with params.

Parameters
interval The interval in miliseconds.
count How often the Timer will get called.
Returns
  • The created Timer.

public abstract Timer createTimer (int interval)

Create a Timer with params.

Parameters
interval The interval in miliseconds.
Returns
  • The created Timer.

public abstract Timer createTimer (int interval, Timer.TimerCallback callback)

Create a Timer with params.

Parameters
interval The interval in miliseconds.
callback The callback which will get invoked after the interval.
Returns
  • The created Timer.

public abstract Vehicle createVehicle (int modelId, Vector3D pos, float angle, int color1, int color2, int respawnDelay)

Create a Vehicle with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
modelId Modelid of the Vehicle.
pos Vector3D-Pos where the Vehicle should be.
angle R(otation)-Pos where the Vehicle should be.
color1 First color of the Vehicle.
color2 Second color of the Vehicle.
respawnDelay The time in seconds when the Vehicle gets respawned if there is no player in it.
Returns
  • The created Vehicle.

public abstract Vehicle createVehicle (int modelId, float x, float y, float z, float angle, int color1, int color2, int respawnDelay)

Create a Vehicle with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
modelId Modelid of the Vehicle.
x X-Pos where the Vehicle should be.
y Y-Pos where the Vehicle should be.
z Z-Pos where the Vehicle should be.
angle R(otation)-Pos where the Vehicle should be.
color1 First color of the Vehicle.
color2 Second color of the Vehicle.
respawnDelay The time in seconds when the Vehicle gets respawned if there is no player in it.
Returns
  • The created Vehicle.

public abstract Vehicle createVehicle (int modelId, float x, float y, float z, int interiorId, int worldId, float angle, int color1, int color2, int respawnDelay)

Create a Vehicle with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
modelId Modelid of the Vehicle.
x X-Pos where the Vehicle should be.
y Y-Pos where the Vehicle should be.
z Z-Pos where the Vehicle should be.
interiorId Interiorid where the Vehicle should be.
worldId Worldid where the Vehicle should be.
angle R(otation)-Pos where the Vehicle should be.
color1 First color of the Vehicle.
color2 Second color of the Vehicle.
respawnDelay The time in seconds when the Vehicle gets respawned if there is no player in it.
Returns
  • The created Vehicle.

public abstract Vehicle createVehicle (int modelId, AngledLocation loc, int color1, int color2, int respawnDelay, boolean addsiren)

Create a Vehicle with 1 params. If the Creation fails, it will throw a CreationFailedException.

Parameters
modelId Modelid of the Vehicle.
loc Location where the Vehicle should be.
color1 First color of the Vehicle.
color2 Second color of the Vehicle.
respawnDelay The time in seconds when the Vehicle gets respawned if there is no player in it.
Returns
  • The created Vehicle.

public abstract Vehicle createVehicle (int modelId, Vector3D pos, int interiorId, int worldId, float angle, int color1, int color2, int respawnDelay)

Create a Vehicle with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
modelId Modelid of the Vehicle.
pos Vector3D-Pos where the Vehicle should be.
interiorId Interiorid where the Vehicle should be.
worldId Worldid where the Vehicle should be.
angle R(otation)-Pos where the Vehicle should be.
color1 First color of the Vehicle.
color2 Second color of the Vehicle.
respawnDelay The time in seconds when the Vehicle gets respawned if there is no player in it.
Returns
  • The created Vehicle.

public abstract Vehicle createVehicle (int modelId, Location loc, float angle, int color1, int color2, int respawnDelay, boolean addsiren)

Create a Vehicle with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
modelId Modelid of the Vehicle.
loc Location where the Object should be.
angle R(otation)-Pos where the Vehicle should be.
color1 First color of the Vehicle.
color2 Second color of the Vehicle.
respawnDelay The time in seconds when the Vehicle gets respawned if there is no player in it.
Returns
  • The created Vehicle.

public abstract Zone createZone (Area area)

Create a Zone with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
area The Area-Position of the Zone.
Returns
  • The created Zone.

public abstract Zone createZone (float minX, float minY, float maxX, float maxY)

Create a Zone with params. If the Creation fails, it will throw a CreationFailedException.

Parameters
minX The Min-X Position of the Zone.
minY The Min-Y Position of the Zone.
maxX The Max-X Position of the Zone.
maxY The Max-Y Position of the Zone.
Returns
  • The created Zone.