public class ItemTransformComponent extends java.lang.Object implements IComponent
ItemTransformComponent allows the IComponentProvider to specify the transforms for the associated Item.| Modifier and Type | Field and Description |
|---|---|
protected javax.vecmath.Matrix4f |
firstPersonLeftHand |
protected javax.vecmath.Matrix4f |
firstPersonRightHand |
protected javax.vecmath.Matrix4f |
fixed |
protected javax.vecmath.Matrix4f |
ground |
protected javax.vecmath.Matrix4f |
gui |
protected javax.vecmath.Matrix4f |
head |
protected javax.vecmath.Matrix4f |
thirdPersonLeftHand |
protected javax.vecmath.Matrix4f |
thirdPersonRightHand |
| Constructor and Description |
|---|
ItemTransformComponent() |
| Modifier and Type | Method and Description |
|---|---|
ItemTransformComponent |
firstPerson(javax.vecmath.Matrix4f left,
javax.vecmath.Matrix4f right)
Sets the transforms to use for the
Item in first person. |
ItemTransformComponent |
fixed(javax.vecmath.Matrix4f fixed)
Sets the transform to use for the
Item in frames. |
javax.vecmath.Matrix4f |
getTransform(net.minecraft.item.Item item,
net.minecraft.client.renderer.block.model.ItemCameraTransforms.TransformType transformType)
Gets the
transformation for the specified Item and ItemCameraTransforms.TransformType. |
ItemTransformComponent |
ground(javax.vecmath.Matrix4f ground)
Sets the transform to use for the
Item on the ground. |
ItemTransformComponent |
gui(javax.vecmath.Matrix4f gui)
Sets the transform to use for the
Item when displayed in GUI slots. |
ItemTransformComponent |
head(javax.vecmath.Matrix4f head)
Sets the transform to use for the
Item when equipped in the head slot. |
boolean |
isClientComponent()
Checks if this component should only be used client side.
|
ItemTransformComponent |
thirdPerson(javax.vecmath.Matrix4f left,
javax.vecmath.Matrix4f right)
Sets the transforms to use for the
Item third person. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComponent, getDependenciesprotected javax.vecmath.Matrix4f thirdPersonLeftHand
protected javax.vecmath.Matrix4f thirdPersonRightHand
protected javax.vecmath.Matrix4f firstPersonLeftHand
protected javax.vecmath.Matrix4f firstPersonRightHand
protected javax.vecmath.Matrix4f head
protected javax.vecmath.Matrix4f gui
protected javax.vecmath.Matrix4f ground
protected javax.vecmath.Matrix4f fixed
public boolean isClientComponent()
IComponentisClientComponent in interface IComponentpublic ItemTransformComponent thirdPerson(javax.vecmath.Matrix4f left, javax.vecmath.Matrix4f right)
Item third person.left - the leftright - the rightpublic ItemTransformComponent firstPerson(javax.vecmath.Matrix4f left, javax.vecmath.Matrix4f right)
Item in first person.left - the leftright - the rightpublic ItemTransformComponent head(javax.vecmath.Matrix4f head)
Item when equipped in the head slot.head - the headpublic ItemTransformComponent gui(javax.vecmath.Matrix4f gui)
Item when displayed in GUI slots.gui - the guipublic ItemTransformComponent ground(javax.vecmath.Matrix4f ground)
Item on the ground.ground - the groundpublic ItemTransformComponent fixed(javax.vecmath.Matrix4f fixed)
Item in frames.fixed - the fixedpublic javax.vecmath.Matrix4f getTransform(net.minecraft.item.Item item,
net.minecraft.client.renderer.block.model.ItemCameraTransforms.TransformType transformType)
transformation for the specified Item and ItemCameraTransforms.TransformType.item - the itemtransformType - the transform type