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 Type
    Method
    Description
    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.
  • 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 item
      player - the player who has the item equipped
      slot - the equipment slot
      Returns:
      the FOV modifier