Interface IFOVModifierItem
- All Known Implementing Classes:
MinigunItem,PneumaticArmorItem
public interface IFOVModifierItem
To be implemented on equippable items. When equipped, the item can modify the player's
field of view.
-
Method Summary
Modifier and TypeMethodDescriptionfloatgetFOVModifier(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.EquipmentSlot slot) Get the FOV modifer for the given item stack.
-
Method Details
-
getFOVModifier
float getFOVModifier(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.EquipmentSlot slot) Get the FOV modifer for the given item stack. Lower values zoom in.- Parameters:
stack- the equipped itemplayer- the player who has the item equippedslot- the equipment slot- Returns:
- the FOV modifier
-