public class ModelGroup
extends java.lang.Object
implements java.lang.AutoCloseable
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Modifier | Constructor and Description |
---|---|
protected |
ModelGroup(long cPtr,
boolean cMemoryOwn) |
|
ModelGroup(ModelGroup model_group) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
delete() |
protected void |
finalize() |
java.util.Optional<Chunk> |
getChunk()
Chunk container, may be null.
|
protected static long |
getCPtr(ModelGroup obj) |
int |
getKey()
Model group key.
|
java.lang.String |
getLabel()
Model group label.
|
java.util.Map<java.lang.String,java.lang.String> |
getMeta()
Model group meta data.
|
boolean |
isSelected()
Current selection state.
|
Image |
renderPreview(long width,
long height,
Matrix transform,
Progress progress)
Generate block model preview image.
|
void |
setLabel(java.lang.String label)
Model group label.
|
void |
setMeta(java.util.Map<java.lang.String,java.lang.String> meta)
Model group meta data.
|
void |
setSelected(boolean state)
Current selection state.
|
protected ModelGroup(long cPtr, boolean cMemoryOwn)
public ModelGroup(ModelGroup model_group)
protected static long getCPtr(ModelGroup obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
public void close()
close
in interface java.lang.AutoCloseable
public int getKey()
public java.util.Optional<Chunk> getChunk()
public void setLabel(java.lang.String label)
public java.lang.String getLabel()
public void setSelected(boolean state)
public boolean isSelected()
public void setMeta(java.util.Map<java.lang.String,java.lang.String> meta)
public java.util.Map<java.lang.String,java.lang.String> getMeta()