public interface IToolWrench
Modifier and Type | Method and Description |
---|---|
boolean |
canWrench(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumHand hand,
net.minecraft.item.ItemStack wrench,
net.minecraft.util.math.RayTraceResult rayTrace)
Called to ensure that the wrench can be used.
|
void |
wrenchUsed(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumHand hand,
net.minecraft.item.ItemStack wrench,
net.minecraft.util.math.RayTraceResult rayTrace)
Callback after the wrench has been used.
|
boolean canWrench(net.minecraft.entity.player.EntityPlayer player, net.minecraft.util.EnumHand hand, net.minecraft.item.ItemStack wrench, net.minecraft.util.math.RayTraceResult rayTrace)
player
- - The player doing the wrenchinghand
- - Which hand was holding the wrenchwrench
- - The item stack that holds the wrenchrayTrace
- - The object that is being wrenchedvoid wrenchUsed(net.minecraft.entity.player.EntityPlayer player, net.minecraft.util.EnumHand hand, net.minecraft.item.ItemStack wrench, net.minecraft.util.math.RayTraceResult rayTrace)
player
- - The player doing the wrenchinghand
- - Which hand was holding the wrenchwrench
- - The item stack that holds the wrenchrayTrace
- - The object that is being wrenched