Interface IItemFluidIdentifier

All Known Implementing Classes:
FluidIdentifierItem

public interface IItemFluidIdentifier
Interface for items that identify a fluid type (e.g. fluid identifier). Used by machines to set tank type from the held/inserted identifier. Fluid ducts: FluidIdentifierItem uses shift+use on a duct to paint the whole network.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.level.material.Fluid
    getType(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.item.ItemStack stack)
    Returns the fluid type this identifier is set to.
  • Method Details

    • getType

      net.minecraft.world.level.material.Fluid getType(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.item.ItemStack stack)
      Returns the fluid type this identifier is set to. Level and pos may be null when used in GUI. Fluids.EMPTY (or mod "none" normalized by ducts) clears duct type when painting.