Class ShootableGadgetItemMethods
java.lang.Object
com.simibubi.create.content.curiosities.zapper.ShootableGadgetItemMethods
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidapplyCooldown(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.Vec3getGunBarrelVec(net.minecraft.world.entity.player.Player player, boolean mainHand, net.minecraft.world.phys.Vec3 rightHandForward) static voidsendPackets(net.minecraft.world.entity.player.Player player, Function<Boolean, ? extends ShootGadgetPacket> factory) static booleanshouldSwap(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)
-
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)
-