Class FluidRegistryEntry<T>
java.lang.Object
alexiil.mc.lib.attributes.fluid.volume.FluidEntry
alexiil.mc.lib.attributes.fluid.volume.FluidRegistryEntry<T>
FluidEntry that is backed by a Registry.- 
Nested Class SummaryNested classes/interfaces inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidEntryFluidEntry.FluidFloatingEntry
- 
Field SummaryFields inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidEntryhash
- 
Constructor SummaryConstructorsConstructorDescriptionFluidRegistryEntry(net.minecraft.util.registry.DefaultedRegistry<T> backingRegistry, T backingObject)FluidRegistryEntry(net.minecraft.util.registry.Registry<T> backingRegistry, T backingObject)
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanequals(FluidEntry other)booleannet.minecraft.util.registry.Registry<T>static net.minecraft.util.IdentifiergetFullRegistryName(net.minecraft.util.registry.Registry<?> registry)net.minecraft.util.IdentifiergetId()static StringgetName(net.minecraft.util.registry.Registry<?> registry)static net.minecraft.util.registry.DefaultedRegistry<?>getRegistryFromName(String name)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.FluidEntryfromMcBuffer, fromTag
- 
Constructor Details- 
FluidRegistryEntry
- 
FluidRegistryEntry
 
- 
- 
Method Details- 
getName- Returns:
- The save name for the given registry. Currently FluidandPotionbased registries are special-cased to return single-char strings ('f' and 'p' respectively). In the future other common registries may have additional special names. The only guarantee given is thatgetRegistryFromName(String)will know what the mapping is.
 
- 
getFullRegistryNamepublic static net.minecraft.util.Identifier getFullRegistryName(net.minecraft.util.registry.Registry<?> registry)- Returns:
- The full Identifierfor the given registry. This isn't directly used for saving.
 
- 
getRegistryFromName@Nullable public static net.minecraft.util.registry.DefaultedRegistry<?> getRegistryFromName(String name)
- 
toTagpublic void toTag(net.minecraft.nbt.NbtCompound tag)- Specified by:
- toTagin class- FluidEntry
 
- 
toMcBufferpublic void toMcBuffer(net.minecraft.network.PacketByteBuf buffer)- Specified by:
- toMcBufferin class- FluidEntry
 
- 
isEmptypublic boolean isEmpty()- Specified by:
- isEmptyin class- FluidEntry
- Returns:
- True if this corresponds to the default value in the backing registry. (No floating entries are empty).
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- FluidEntry
 
- 
equals- Overrides:
- equalsin class- FluidEntry
 
- 
equals- Specified by:
- equalsin class- FluidEntry
 
- 
toString
- 
getRegistryInternalName- Specified by:
- getRegistryInternalNamein 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.
 
- 
getIdpublic net.minecraft.util.Identifier getId()- Specified by:
- getIdin class- FluidEntry
- Returns:
- The Identifierthat the backing object uses.
 
- 
getBackingRegistry
- 
getBackingObject
 
-