mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 19:59:55 +00:00
* Fix shift-merging tools voiding items fixes <https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/11392> * Change 0-sized ItemStacks into null stacks in crafting station attached slots Fixes <https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/10425> * Update buildscript * spotlessApply
24 lines
828 B
Java
24 lines
828 B
Java
package tconstruct.library.weaponry;
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.minecraft.item.ItemStack;
|
|
import tconstruct.weaponry.client.CrosshairType;
|
|
|
|
/**
|
|
* This class has a windup time, meaning it takes some time to reach full potency.
|
|
* Windup progress is visualized with a special crosshair.
|
|
*/
|
|
public interface IWindup {
|
|
public int getWindupTime(ItemStack itemStack); // how long it takes to fully wind up
|
|
|
|
public float getWindupProgress(ItemStack itemStack, EntityPlayer player); // how far we've winded up, 0.0-1.0
|
|
|
|
public float getMinWindupProgress(ItemStack itemStack); // how long it has been winded up at least to fire (0.0-1.0)
|
|
|
|
public CrosshairType getCrosshairType();
|
|
|
|
public boolean zoomOnWindup(ItemStack itemStack);
|
|
|
|
public float getZoom(ItemStack itemStack);
|
|
}
|