Package net.risingworld.api.utils
Class Layer
java.lang.Object
net.risingworld.api.utils.Layer
All layers the game currently uses. This is relevant for physics and collisions (the player only collides with
certain layers), but also for rendering (some layers aren't visible to the player).
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
getBitmask
(int... layers) Gets a collision bitmask of the provided layers.
-
Field Details
-
DEFAULT
public static final int DEFAULT- See Also:
-
TRANSPARENT_FX
public static final int TRANSPARENT_FX- See Also:
-
IGNORE_RAYCAST
public static final int IGNORE_RAYCAST- See Also:
-
TRIGGER
public static final int TRIGGER- See Also:
-
WATER
public static final int WATER- See Also:
-
UI
public static final int UI- See Also:
-
AREA
public static final int AREA- See Also:
-
TERRAIN
public static final int TERRAIN- See Also:
-
GRASS
public static final int GRASS- See Also:
-
WORLD
public static final int WORLD- See Also:
-
VEGETATION
public static final int VEGETATION- See Also:
-
VEGETATIONINTERACTION
public static final int VEGETATIONINTERACTION- See Also:
-
CONSTRUCTION
public static final int CONSTRUCTION- See Also:
-
TRANSPARENT_CONSTRUCTION
public static final int TRANSPARENT_CONSTRUCTION- See Also:
-
OBJECT
public static final int OBJECT- See Also:
-
LOCALPLAYER
public static final int LOCALPLAYER- See Also:
-
REMOTEPLAYER
public static final int REMOTEPLAYER- See Also:
-
NPC
public static final int NPC- See Also:
-
ITEM
public static final int ITEM- See Also:
-
VEHICLE
public static final int VEHICLE- See Also:
-
CORPSE
public static final int CORPSE- See Also:
-
DEBRIS
public static final int DEBRIS- See Also:
-
DECAL
public static final int DECAL- See Also:
-
LADDER
public static final int LADDER- See Also:
-
MISC
public static final int MISC- See Also:
-
SELECTOR
public static final int SELECTOR- See Also:
-
MASK
public static final int MASK- See Also:
-
-
Constructor Details
-
Layer
public Layer()
-
-
Method Details
-
getBitmask
public static int getBitmask(int... layers) Gets a collision bitmask of the provided layers.- Parameters:
layers
- the layers you want to "combine"- Returns:
- a bitmask of the combined layers.
-