Class ShootableGadgetRenderHandler
java.lang.Object
com.simibubi.create.content.curiosities.zapper.ShootableGadgetRenderHandler
- Direct Known Subclasses:
PotatoCannonRenderHandler,ZapperRenderHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected floatprotected floatprotected floatprotected float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected floatprotected abstract booleanappliesTo(net.minecraft.world.item.ItemStack stack)voiddontAnimateItem(net.minecraft.world.InteractionHand hand)floatgetAnimation(boolean rightHand, float partialTicks)protected voidonRenderPlayerHand(net.minecraftforge.client.event.RenderHandEvent event)protected abstract voidplaySound(net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.Vec3 position)voidregisterListeners(net.minecraftforge.eventbus.api.IEventBus bus)voidshoot(net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.Vec3 location)voidtick()protected abstract voidtransformHand(com.mojang.blaze3d.vertex.PoseStack ms, float flip, float equipProgress, float recoil, float pt)protected abstract voidtransformTool(com.mojang.blaze3d.vertex.PoseStack ms, float flip, float equipProgress, float recoil, float pt)
-
Field Details
-
leftHandAnimation
protected float leftHandAnimation -
rightHandAnimation
protected float rightHandAnimation -
lastLeftHandAnimation
protected float lastLeftHandAnimation -
lastRightHandAnimation
protected float lastRightHandAnimation -
dontReequipLeft
protected boolean dontReequipLeft -
dontReequipRight
protected boolean dontReequipRight
-
-
Constructor Details
-
ShootableGadgetRenderHandler
public ShootableGadgetRenderHandler()
-
-
Method Details
-
tick
public void tick() -
getAnimation
public float getAnimation(boolean rightHand, float partialTicks) -
animationDecay
protected float animationDecay() -
shoot
public void shoot(net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.Vec3 location) -
playSound
protected abstract void playSound(net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.Vec3 position) -
appliesTo
protected abstract boolean appliesTo(net.minecraft.world.item.ItemStack stack) -
transformTool
protected abstract void transformTool(com.mojang.blaze3d.vertex.PoseStack ms, float flip, float equipProgress, float recoil, float pt) -
transformHand
protected abstract void transformHand(com.mojang.blaze3d.vertex.PoseStack ms, float flip, float equipProgress, float recoil, float pt) -
registerListeners
public void registerListeners(net.minecraftforge.eventbus.api.IEventBus bus) -
onRenderPlayerHand
protected void onRenderPlayerHand(net.minecraftforge.client.event.RenderHandEvent event) -
dontAnimateItem
public void dontAnimateItem(net.minecraft.world.InteractionHand hand)
-