Class FluidEntry.FluidFloatingEntry
java.lang.Object
alexiil.mc.lib.attributes.fluid.volume.FluidEntry
alexiil.mc.lib.attributes.fluid.volume.FluidEntry.FluidFloatingEntry
- Enclosing class:
- FluidEntry
-
Nested Class Summary
Nested classes/interfaces inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidEntry
FluidEntry.FluidFloatingEntry -
Field Summary
FieldsFields inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidEntry
hash -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanequals(FluidEntry other) booleannet.minecraft.util.IdentifiergetId()inthashCode()booleanisEmpty()voidtoMcBuffer(net.minecraft.network.PacketByteBuf buffer) toString()voidtoTag(net.minecraft.nbt.NbtCompound tag) Methods inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidEntry
fromMcBuffer, fromTag
-
Field Details
-
id
public final net.minecraft.util.Identifier id
-
-
Constructor Details
-
FluidFloatingEntry
public FluidFloatingEntry(net.minecraft.util.Identifier id)
-
-
Method Details
-
hashCode
public int hashCode()- Overrides:
hashCodein classFluidEntry
-
equals
- Overrides:
equalsin classFluidEntry
-
equals
- Specified by:
equalsin classFluidEntry
-
toTag
public void toTag(net.minecraft.nbt.NbtCompound tag) - Specified by:
toTagin classFluidEntry
-
toMcBuffer
public void toMcBuffer(net.minecraft.network.PacketByteBuf buffer) - Specified by:
toMcBufferin classFluidEntry
-
toString
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin classFluidEntry- Returns:
- True if this corresponds to the default value in the backing registry. (No floating entries are empty).
-
getRegistryInternalName
- Specified by:
getRegistryInternalNamein classFluidEntry- 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:
getIdin classFluidEntry- Returns:
- The
Identifierthat the backing object uses.
-