Class ItemSocket<T>
java.lang.Object
net.ixdarklord.coolcatcanvas.api.client.armature.render.ItemSocket<T>
An item shown at a point of an armature-driven mob: a held sword, a hat, a lantern on a belt. The stack is asked for each
frame, so it follows the entity's equipment.
renderer.socket(new ItemSocket<Golem>("back", golem -> golem.getCarriedItem(), ItemDisplayContext.FIXED)
.offset(0, 2, 1).rotate(0, 180, 0).scale(0.75F));
-
Constructor Summary
ConstructorsConstructorDescriptionItemSocket(String point, Function<T, net.minecraft.world.item.ItemStack> stack, net.minecraft.world.item.ItemDisplayContext display) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemDisplayContextdisplay()held()Holds it as a vanilla hand does, for a point at the hand of an arm hanging down at rest.offset(float x, float y, float z) Moves it from the point, in pixels along the point's own axes.point()rotate(float x, float y, float z) Turns it at the point, in degrees.scale(float scale) stack()
-
Constructor Details
-
ItemSocket
-
-
Method Details
-
held
Holds it as a vanilla hand does, for a point at the hand of an arm hanging down at rest. -
offset
Moves it from the point, in pixels along the point's own axes. -
rotate
Turns it at the point, in degrees. -
scale
-
point
-
stack
-
display
public net.minecraft.world.item.ItemDisplayContext display()
-