Uses of Class
alexiil.mc.lib.attributes.fluid.volume.FluidKey
Package
Description
The base package for
fluid
management.-
Uses of FluidKey in alexiil.mc.lib.attributes.fluid
Modifier and TypeMethodDescriptionstatic FluidKey
FluidItemUtil.getContainedFluid(net.minecraft.item.ItemStack stack)
Retrieves the first fluid contained by the givenItemStack
.Modifier and TypeMethodDescriptiondefault FluidVolume
Deprecated, for removal: This API element is subject to removal in a future version.default FluidVolume
FluidExtractable.extract(FluidKey filter, FluidAmount maxAmount)
default int
Deprecated, for removal: This API element is subject to removal in a future version.Replaced byGroupedFluidInvView.getAmount_F(FluidKey)
default FluidAmount
GroupedFluidInvView.getAmount_F(FluidKey fluid)
default int
GroupedFluidInvView.getCapacity(FluidKey fluid)
Deprecated, for removal: This API element is subject to removal in a future version.Replaced byGroupedFluidInvView.getCapacity_F(FluidKey)
default FluidAmount
GroupedFluidInvView.getCapacity_F(FluidKey fluid)
static Set<net.minecraft.item.Item>
FluidContainerRegistry.getFullContainersFor(FluidKey fluid)
Retrieves everyItem
that has been registered withFluidContainerRegistry.mapContainer(Item, Item, FluidVolume)
as a direct container that is full of the specified fluid.default int
Deprecated, for removal: This API element is subject to removal in a future version.Replaced byGroupedFluidInvView.getSpace_F(FluidKey)
default FluidAmount
GroupedFluidInvView.getSpace_F(FluidKey fluid)
GroupedFluidInvView.getStatistics(FluidKey filter)
boolean
FixedFluidInv.isFluidValidForTank(int tank, FluidKey fluid)
Checks to see if the given fluid would be valid for this tank, ignoring current contents.boolean
FixedFluidInvView.isFluidValidForTank(int tank, FluidKey fluid)
Checks to see if the given fluid would be valid for this tank, ignoring current contents.boolean
void
FluidInvAmountChangeListener_F.onChange(GroupedFluidInvView inv, FluidKey fluid, FluidAmount previous, FluidAmount current)
void
FluidInvAmountChangeListener.onChange(GroupedFluidInvView inv, FluidKey fluid, int previous, int current)
Deprecated, for removal: This API element is subject to removal in a future version.static void
FluidContainerRegistry.registerFillHandler(net.minecraft.item.Item empty, FluidKey fluid, FluidAmount minimum, FluidAmount capacity, FluidContainerRegistry.FluidFillFunction fn)
Registers a custom fill handler for the given empty item, which always creates filledItemStack
s with differentItem
s to the original.static void
FluidContainerRegistry.registerFillHandler(net.minecraft.item.Item empty, FluidKey fluid, FluidContainerRegistry.FluidFillHandler handler)
Registers a custom fill handler for the given empty item, which always creates filledItemStack
s with differentItem
s to the original. -
Uses of FluidKey in alexiil.mc.lib.attributes.fluid.compat.mod.vanilla
Modifier and TypeMethodDescriptionstatic void
VanillaFluidCompat.registerCauldronAttributes(net.minecraft.block.Block cauldron, FluidKey fluid)
-
Uses of FluidKey in alexiil.mc.lib.attributes.fluid.filter
Modifier and TypeMethodDescriptionFluidFilter.asPredicate()
FluidFilterUtil.decomposeFilter(FluidFilter filter)
Attempts to decompose the given filter down into it's componentFluidKey
's, if it implementsReadableFluidFilter
.FluidFilterUtil.findIntersection(FluidFilter filter, Set<FluidKey> set)
Finds the set ofFluidKey
s which are both in the set and match the given filter.FluidFilterUtil.findIntersection(FluidFilter filter, Set<FluidKey> set, boolean resolve)
Finds the set ofFluidKey
s which are both in the set and match the given filter.FluidSetFilter.getFluids()
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
Checks to see if the given filter matches the given fluid key.boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
default boolean
Checks to see if the given filter matches the given fluid key.static ReadableFluidFilter
Modifier and TypeMethodDescriptionFluidFilterUtil.findIntersection(FluidFilter filter, Set<FluidKey> set)
Finds the set ofFluidKey
s which are both in the set and match the given filter.FluidFilterUtil.findIntersection(FluidFilter filter, Set<FluidKey> set, boolean resolve)
Finds the set ofFluidKey
s which are both in the set and match the given filter. -
Uses of FluidKey in alexiil.mc.lib.attributes.fluid.impl
Modifier and TypeMethodDescriptionCombinedGroupedFluidInvView.getStoredFluids()
DelegatingGroupedFluidInv.getStoredFluids()
EmptyGroupedFluidInv.getStoredFluids()
GroupedFluidInvViewFixedWrapper.getStoredFluids()
Modifier and TypeMethodDescriptionboolean
AbstractPartialFixedFluidInvView.isFluidValidForTank(int tank, FluidKey fluid)
boolean
CombinedFixedFluidInvView.isFluidValidForTank(int tank, FluidKey fluid)
boolean
DelegatingFixedFluidInv.isFluidValidForTank(int tank, FluidKey fluid)
boolean
EmptyFixedFluidInv.isFluidValidForTank(int tank, FluidKey item)
boolean
SimpleFixedFluidInv.isFluidValidForTank(int tank, FluidKey fluid)
boolean
SimpleLimitedFixedFluidInv.isFluidValidForTank(int tank, FluidKey fluid)
-
Uses of FluidKey in alexiil.mc.lib.attributes.fluid.item
-
Uses of FluidKey in alexiil.mc.lib.attributes.fluid.mixin.api
Modifier and TypeMethodDescriptionIBucketItem.libblockattributes__getFluid(net.minecraft.item.ItemStack stack)
Modifier and TypeMethodDescriptionnet.minecraft.item.ItemStack
IBucketItem.libblockattributes__withFluid(FluidKey fluid)
-
Uses of FluidKey in alexiil.mc.lib.attributes.fluid.volume
Modifier and TypeClassDescriptionclass
AColouredFluidKey
which gets it's colour from aBiome
s water colour.class
class
Deprecated, for removal: This API element is subject to removal in a future version.Because anyFluidKey
can map to a singleFluid
, andSimpleFluidKey
has a much better name than this.class
class
Simple implementation of aFluidKey
that doesn't do anything special.class
Modifier and TypeFieldDescriptionstatic FluidKey
FluidKeys.EMPTY
FluidVolume.fluidKey
static FluidKey
FluidKeys.LAVA
Modifier and TypeFieldDescriptionstatic com.google.gson.JsonDeserializer<FluidKey>
FluidKey.DESERIALIZER
Modifier and TypeMethodDescriptionstatic FluidKey
FluidKey.fromJson(com.google.gson.JsonObject json)
static FluidKey
FluidKey.fromMcBuffer(net.minecraft.network.PacketByteBuf buffer)
Reads aFluidKey
from a vanilla minecraftPacketByteBuf
.static FluidKey
FluidKey.fromTag(net.minecraft.nbt.NbtCompound tag)
static FluidKey
FluidKeys.get(FluidEntry entry)
static FluidKey
FluidKeys.get(net.minecraft.fluid.Fluid fluid)
static FluidKey
FluidKeys.get(net.minecraft.potion.Potion potion)
FluidVolume.getFluidKey()
Modifier and TypeMethodDescriptiondefault void
FluidTemperature.addTemperatureToTooltip(FluidKey fluid, FluidTooltipContext context, List<net.minecraft.text.Text> tooltip)
void
FluidProperty.addTooltipExtras(FluidKey fluid, FluidTooltipContext context, List<net.minecraft.text.Text> tooltip)
Adds tooltip extras for this fluid property when getting the tooltip for just theFluidKey
.static FluidVolume
Deprecated, for removal: This API element is subject to removal in a future version.double
FluidTemperature.DiscreteFluidTemperature.getTemperature(FluidKey fluidKey)
static void
FluidKeys.put(FluidEntry.FluidFloatingEntry entry, FluidKey fluidKey)
static void
FluidKeys.put(FluidRegistryEntry<?> entry, FluidKey fluidKey)
static void
static void
ModifierConstructorDescriptionFluidVolume(FluidKey key, int amount)
Deprecated, for removal: This API element is subject to removal in a future version.FluidVolume(FluidKey key, FluidAmount amount)
FluidVolume(FluidKey key, com.google.gson.JsonObject json)
FluidVolume(FluidKey key, net.minecraft.nbt.NbtCompound tag)
FluidExtractable.extract(FluidKey, FluidAmount)