public final class ConfiguredModel
extends java.lang.Object
Can be manually constructed, created by static factory such as
allYRotations(ModelFile, int, boolean)
, or created by builder via
builder()
.
修飾子とタイプ | クラスと説明 |
---|---|
static class |
ConfiguredModel.Builder<T>
A builder for
ConfiguredModel s, which can contain a callback for
processing the finished result. |
修飾子とタイプ | フィールドと説明 |
---|---|
static int |
DEFAULT_WEIGHT
The default random weight of configured models, used by convenience
overloads.
|
ModelFile |
model |
int |
rotationX |
int |
rotationY |
boolean |
uvLock |
int |
weight |
コンストラクタと説明 |
---|
ConfiguredModel(ModelFile model)
Construct a new
ConfiguredModel with the default rotation (0, 0),
uvlock (false), and default random weight . |
ConfiguredModel(ModelFile model,
int rotationX,
int rotationY,
boolean uvLock)
Construct a new
ConfiguredModel with the default random weight . |
ConfiguredModel(ModelFile model,
int rotationX,
int rotationY,
boolean uvLock,
int weight)
Construct a new
ConfiguredModel . |
修飾子とタイプ | メソッドと説明 |
---|---|
static ConfiguredModel[] |
allRotations(ModelFile model,
boolean uvlock) |
static ConfiguredModel[] |
allRotations(ModelFile model,
boolean uvlock,
int weight) |
static ConfiguredModel[] |
allYRotations(ModelFile model,
int x,
boolean uvlock) |
static ConfiguredModel[] |
allYRotations(ModelFile model,
int x,
boolean uvlock,
int weight) |
static ConfiguredModel.Builder<?> |
builder()
Create a new unowned
ConfiguredModel.Builder . |
public static final int DEFAULT_WEIGHT
public final ModelFile model
public final int rotationX
public final int rotationY
public final boolean uvLock
public final int weight
public ConfiguredModel(ModelFile model, int rotationX, int rotationY, boolean uvLock, int weight)
ConfiguredModel
.model
- the underlying modelrotationX
- x-rotation to apply to the modelrotationY
- y-rotation to apply to the modeluvLock
- if uvlock should be enabledweight
- the random weight of the modeljava.lang.NullPointerException
- if model
is null
java.lang.IllegalArgumentException
- if x and/or y rotation are not valid (see
ModelRotation
)java.lang.IllegalArgumentException
- if weight is less than or equal to zeropublic ConfiguredModel(ModelFile model, int rotationX, int rotationY, boolean uvLock)
ConfiguredModel
with the default random weight
.model
- the underlying modelrotationX
- x-rotation to apply to the modelrotationY
- y-rotation to apply to the modeluvLock
- if uvlock should be enabledjava.lang.NullPointerException
- if model
is null
java.lang.IllegalArgumentException
- if x and/or y rotation are not valid (see
ModelRotation
)public ConfiguredModel(ModelFile model)
ConfiguredModel
with the default rotation (0, 0),
uvlock (false), and default random weight
.java.lang.NullPointerException
- if model
is null
public static ConfiguredModel[] allYRotations(ModelFile model, int x, boolean uvlock)
public static ConfiguredModel[] allYRotations(ModelFile model, int x, boolean uvlock, int weight)
public static ConfiguredModel[] allRotations(ModelFile model, boolean uvlock)
public static ConfiguredModel[] allRotations(ModelFile model, boolean uvlock, int weight)
public static ConfiguredModel.Builder<?> builder()
ConfiguredModel.Builder
.ConfiguredModel.Builder