Interface BendablePart
- All Known Implementing Classes:
ModelPartMixin
public interface BendablePart
A vanilla model part that can bend along its length (ModelPartMixin).
-
Method Summary
Modifier and TypeMethodDescriptionfloatfloatfloatfloatList<net.minecraft.client.model.geom.ModelPart.Cube> voidcoolcatlib$setBend(float amount, float direction, float start, float end) Bends the part fromstarttoendalong its Y (model pixels, in its own space) byamountradians, towarddirectionradians round the length (0 forward).static BendablePartof(net.minecraft.client.model.geom.ModelPart part)
-
Method Details
-
coolcatlib$setBend
void coolcatlib$setBend(float amount, float direction, float start, float end) Bends the part fromstarttoendalong its Y (model pixels, in its own space) byamountradians, towarddirectionradians round the length (0 forward). An amount of 0 straightens it. -
coolcatlib$bendAmount
float coolcatlib$bendAmount() -
coolcatlib$bendDirection
float coolcatlib$bendDirection() -
coolcatlib$bendStart
float coolcatlib$bendStart() -
coolcatlib$bendEnd
float coolcatlib$bendEnd() -
coolcatlib$cubes
List<net.minecraft.client.model.geom.ModelPart.Cube> coolcatlib$cubes() -
of
-