86 lines
1.9 KiB
Markdown
86 lines
1.9 KiB
Markdown
# UIMorphComponent.rotation
|
|
|
|
[← UIMorphComponent](index.md) · [← Master](../../wiki.md)
|
|
|
|
Parça 1/3 · [sonraki](rotation-2.md)
|
|
|
|
rotation(float pitch, float yaw)
|
|
UIMorphComponent Change camera orbit rotation in the morph component.
|
|
void serializeNBT(NBTTagCompound tag)
|
|
|
|
Methods inherited from class mchorse.mappet.api.ui.components.UIComponent
|
|
anchor, anchor, anchorX, anchorY, apply, applyKeybinds, change, clearChanges, context, context, enabled, getChanges, getChildComponents, h, handleChanges, id, isDataReserved, keybind,
|
|
keybind, keybind, keybind, margin, marginBottom, marginLeft, marginRight, marginTop, rh, rh, rw, rw, rwh, rx, rx, rxy, ry, ry, serializeNBT, tooltip, tooltip, updateDelay, visible, w,
|
|
wh, x, xy, y
|
|
|
|
Methods inherited from class java.lang.Object
|
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
|
|
|
|
Field Detail
|
|
morph
|
|
|
|
public NBTTagCompound morph
|
|
|
|
editing
|
|
|
|
public boolean editing
|
|
|
|
pos
|
|
|
|
public Vector3f pos
|
|
|
|
rot
|
|
|
|
public Vector2f rot
|
|
|
|
distance
|
|
|
|
public float distance
|
|
|
|
fov
|
|
|
|
public float fov
|
|
|
|
Constructor Detail
|
|
UIMorphComponent
|
|
|
|
public UIMorphComponent()
|
|
|
|
Method Detail
|
|
morph
|
|
|
|
public UIMorphComponent morph(AbstractMorph morph)
|
|
|
|
Set display morph.
|
|
|
|
// Assuming that uiContext is a IMappetUIContext
|
|
|
|
// Set Alex morph
|
|
uiContext.get("morph").morph(mappet.createMorph('{Name:"blockbuster.alex"}'));
|
|
|
|
|
|
editing
|
|
|
|
public UIMorphComponent editing()
|
|
|
|
Enable an ability for players to pick or edit the morph.
|
|
|
|
// Assuming that uiContext is a IMappetUIContext
|
|
|
|
// Enable morph editing
|
|
uiContext.get("morph").editing();
|
|
|
|
|
|
editing
|
|
|
|
public UIMorphComponent editing(boolean editing)
|
|
|
|
Toggle an ability for players to pick or edit the morph.
|
|
|
|
// Assuming that uiContext is a IMappetUIContext
|
|
|
|
// Disable morph editing
|
|
uiContext.get("morph").editing(false);
|
|
|
|
|