public class ZapperRenderHandler extends ShootableGadgetRenderHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
ZapperRenderHandler.LaserBeam |
| Modifier and Type | Field and Description |
|---|---|
java.util.List<ZapperRenderHandler.LaserBeam> |
cachedBeams |
dontReequipLeft, dontReequipRight, lastLeftHandAnimation, lastRightHandAnimation, leftHandAnimation, rightHandAnimation| Constructor and Description |
|---|
ZapperRenderHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBeam(ZapperRenderHandler.LaserBeam beam) |
protected boolean |
appliesTo(net.minecraft.item.ItemStack stack) |
protected void |
playSound(net.minecraft.util.Hand hand,
net.minecraft.util.math.vector.Vector3d position) |
void |
tick() |
protected void |
transformHand(com.mojang.blaze3d.matrix.MatrixStack ms,
float flip,
float equipProgress,
float recoil,
float pt) |
protected void |
transformTool(com.mojang.blaze3d.matrix.MatrixStack ms,
float flip,
float equipProgress,
float recoil,
float pt) |
animationDecay, dontAnimateItem, getAnimation, onRenderPlayerHand, register, shootpublic java.util.List<ZapperRenderHandler.LaserBeam> cachedBeams
protected boolean appliesTo(net.minecraft.item.ItemStack stack)
appliesTo in class ShootableGadgetRenderHandlerpublic void tick()
tick in class ShootableGadgetRenderHandlerprotected void transformTool(com.mojang.blaze3d.matrix.MatrixStack ms,
float flip,
float equipProgress,
float recoil,
float pt)
transformTool in class ShootableGadgetRenderHandlerprotected void transformHand(com.mojang.blaze3d.matrix.MatrixStack ms,
float flip,
float equipProgress,
float recoil,
float pt)
transformHand in class ShootableGadgetRenderHandlerprotected void playSound(net.minecraft.util.Hand hand,
net.minecraft.util.math.vector.Vector3d position)
playSound in class ShootableGadgetRenderHandlerpublic void addBeam(ZapperRenderHandler.LaserBeam beam)