Class FluidEntry.FluidFloatingEntry

java.lang.Object
alexiil.mc.lib.attributes.fluid.volume.FluidEntry
alexiil.mc.lib.attributes.fluid.volume.FluidEntry.FluidFloatingEntry
Enclosing class:
FluidEntry

public static final class FluidEntry.FluidFloatingEntry
extends FluidEntry
  • Nested Class Summary

    Nested classes/interfaces inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidEntry

    FluidEntry.FluidFloatingEntry
  • Field Summary

    Fields 
    Modifier and Type Field Description
    net.minecraft.util.Identifier id  

    Fields inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidEntry

    hash
  • Constructor Summary

    Constructors 
    Constructor Description
    FluidFloatingEntry​(net.minecraft.util.Identifier id)  
  • Method Summary

    Modifier and Type Method Description
    protected boolean equals​(FluidEntry other)  
    boolean equals​(java.lang.Object obj)  
    net.minecraft.util.Identifier getId()  
    java.lang.String getRegistryInternalName()  
    int hashCode()  
    boolean isEmpty()  
    void toMcBuffer​(net.minecraft.network.PacketByteBuf buffer)  
    java.lang.String toString()  
    void toTag​(net.minecraft.nbt.CompoundTag tag)  

    Methods inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidEntry

    fromMcBuffer, fromTag

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • id

      public final net.minecraft.util.Identifier id
  • Constructor Details

  • Method Details

    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class FluidEntry
    • equals

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class FluidEntry
    • equals

      protected boolean equals​(FluidEntry other)
      Specified by:
      equals in class FluidEntry
    • toTag

      public void toTag​(net.minecraft.nbt.CompoundTag tag)
      Specified by:
      toTag in class FluidEntry
    • toMcBuffer

      public void toMcBuffer​(net.minecraft.network.PacketByteBuf buffer)
      Specified by:
      toMcBuffer in class FluidEntry
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in class FluidEntry
      Returns:
      True if this corresponds to the default value in the backing registry. (No floating entries are empty).
    • getRegistryInternalName

      public java.lang.String getRegistryInternalName()
      Specified by:
      getRegistryInternalName in class FluidEntry
      Returns:
      The LBA-internal name used to serialise this entry. Floating entries return "i", Fluid-based registry entries return "f", Potion-based registry entries return "p", and any other registry entry returns the ID of that registry.
    • getId

      public net.minecraft.util.Identifier getId()
      Specified by:
      getId in class FluidEntry
      Returns:
      The Identifier that the backing object uses.