Class ShootableGadgetItemMethods

java.lang.Object
com.simibubi.create.content.curiosities.zapper.ShootableGadgetItemMethods

public class ShootableGadgetItemMethods extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    applyCooldown(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack item, net.minecraft.world.InteractionHand hand, Predicate<net.minecraft.world.item.ItemStack> predicate, int cooldown)
     
    static net.minecraft.world.phys.Vec3
    getGunBarrelVec(net.minecraft.world.entity.player.Player player, boolean mainHand, net.minecraft.world.phys.Vec3 rightHandForward)
     
    static void
    sendPackets(net.minecraft.world.entity.player.Player player, Function<Boolean,? extends ShootGadgetPacket> factory)
     
    static boolean
    shouldSwap(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack item, net.minecraft.world.InteractionHand hand, Predicate<net.minecraft.world.item.ItemStack> predicate)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ShootableGadgetItemMethods

      public ShootableGadgetItemMethods()
  • Method Details

    • applyCooldown

      public static void applyCooldown(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack item, net.minecraft.world.InteractionHand hand, Predicate<net.minecraft.world.item.ItemStack> predicate, int cooldown)
    • sendPackets

      public static void sendPackets(net.minecraft.world.entity.player.Player player, Function<Boolean,? extends ShootGadgetPacket> factory)
    • shouldSwap

      public static boolean shouldSwap(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack item, net.minecraft.world.InteractionHand hand, Predicate<net.minecraft.world.item.ItemStack> predicate)
    • getGunBarrelVec

      public static net.minecraft.world.phys.Vec3 getGunBarrelVec(net.minecraft.world.entity.player.Player player, boolean mainHand, net.minecraft.world.phys.Vec3 rightHandForward)