public abstract class ShootableGadgetRenderHandler
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
dontReequipLeft |
protected boolean |
dontReequipRight |
protected float |
lastLeftHandAnimation |
protected float |
lastRightHandAnimation |
protected float |
leftHandAnimation |
protected float |
rightHandAnimation |
| Constructor and Description |
|---|
ShootableGadgetRenderHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected float |
animationDecay() |
protected abstract boolean |
appliesTo(net.minecraft.item.ItemStack stack) |
void |
dontAnimateItem(net.minecraft.util.Hand hand) |
float |
getAnimation(boolean rightHand,
float partialTicks) |
protected void |
onRenderPlayerHand(net.minecraftforge.client.event.RenderHandEvent event) |
protected abstract void |
playSound(net.minecraft.util.Hand hand,
net.minecraft.util.math.vector.Vector3d position) |
void |
registerListeners(net.minecraftforge.eventbus.api.IEventBus bus) |
void |
shoot(net.minecraft.util.Hand hand,
net.minecraft.util.math.vector.Vector3d location) |
void |
tick() |
protected abstract void |
transformHand(com.mojang.blaze3d.matrix.MatrixStack ms,
float flip,
float equipProgress,
float recoil,
float pt) |
protected abstract void |
transformTool(com.mojang.blaze3d.matrix.MatrixStack ms,
float flip,
float equipProgress,
float recoil,
float pt) |
protected float leftHandAnimation
protected float rightHandAnimation
protected float lastLeftHandAnimation
protected float lastRightHandAnimation
protected boolean dontReequipLeft
protected boolean dontReequipRight
public void tick()
public float getAnimation(boolean rightHand,
float partialTicks)
protected float animationDecay()
public void shoot(net.minecraft.util.Hand hand,
net.minecraft.util.math.vector.Vector3d location)
protected abstract void playSound(net.minecraft.util.Hand hand,
net.minecraft.util.math.vector.Vector3d position)
protected abstract boolean appliesTo(net.minecraft.item.ItemStack stack)
protected abstract void transformTool(com.mojang.blaze3d.matrix.MatrixStack ms,
float flip,
float equipProgress,
float recoil,
float pt)
protected abstract void transformHand(com.mojang.blaze3d.matrix.MatrixStack ms,
float flip,
float equipProgress,
float recoil,
float pt)
public void registerListeners(net.minecraftforge.eventbus.api.IEventBus bus)
protected void onRenderPlayerHand(net.minecraftforge.client.event.RenderHandEvent event)
public void dontAnimateItem(net.minecraft.util.Hand hand)