public interface

Pickup

implements Destroyable Proxyable<T>
net.gtaun.shoebill.object.Pickup

Summary

Constants
int INVALID_ID
Public Methods
abstract static Pickup create(int modelId, int type, Location loc)
Create a Pickup with params.
abstract static Pickup create(int modelId, int type, float x, float y, float z, EventHandler<PlayerPickupEvent> handler)
Create a Pickup with params.
abstract static Pickup create(int modelId, int type, float x, float y, float z, int worldId)
Create a Pickup with params.
abstract static Pickup create(int modelId, int type, Location loc, EventHandler<PlayerPickupEvent> handler)
Create a Pickup with params.
abstract static Pickup create(int modelId, int type, float x, float y, float z)
Create a Pickup with params.
abstract static Pickup create(int modelId, int type, float x, float y, float z, int worldId, EventHandler<PlayerPickupEvent> handler)
Create a Pickup with params.
abstract static Pickup get(int id)
Gets a Pickup by its Id
abstract static Collection<Pickup> get()
Gets a Collection of all available Pickups.
abstract int getId()
Gets the Id from the Pickup.
abstract Location getLocation()
Gets the Location of the Pickup
abstract int getModelId()
Gets the Modelid of the Pickup
abstract int getType()
Gets the Type of the Pickup
abstract boolean isStatic()
[Expand]
Inherited Methods
From interface net.gtaun.shoebill.object.Destroyable
From interface net.gtaun.shoebill.object.Proxyable

Constants

public static final int INVALID_ID

Constant Value: -1 (0xffffffff)

Public Methods

public static abstract Pickup create (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 static abstract Pickup create (int modelId, int type, float x, float y, float z, EventHandler<PlayerPickupEvent> handler)

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.
handler The called event.
Returns
  • The created Pickup.

public static abstract Pickup create (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 static abstract Pickup create (int modelId, int type, Location loc, EventHandler<PlayerPickupEvent> handler)

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.
handler The called event.
Returns
  • The created Pickup.

public static abstract Pickup create (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 static abstract Pickup create (int modelId, int type, float x, float y, float z, int worldId, EventHandler<PlayerPickupEvent> handler)

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.
handler The called event
Returns
  • The created Pickup.

public static abstract Pickup get (int id)

Gets a Pickup by its Id

Parameters
id Id of the Pickup
Returns
  • The found Pickup

public static abstract Collection<Pickup> get ()

Gets a Collection of all available Pickups.

Returns
  • A Collection of all Pickups

public abstract int getId ()

Gets the Id from the Pickup.

Returns
  • The Id

public abstract Location getLocation ()

Gets the Location of the Pickup

Returns
  • The Location

public abstract int getModelId ()

Gets the Modelid of the Pickup

Returns
  • The Modelid

public abstract int getType ()

Gets the Type of the Pickup

Returns
  • The Type

public abstract boolean isStatic ()