Uses of Class
alexiil.mc.lib.attributes.fluid.volume.FluidKey
Packages that use FluidKey
Package
Description
The base package for
fluid
management.-
Uses of FluidKey in alexiil.mc.lib.attributes.fluid
Methods in alexiil.mc.lib.attributes.fluid that return FluidKeyModifier and TypeMethodDescriptionstatic FluidKey
FluidItemUtil.getContainedFluid
(net.minecraft.item.ItemStack stack) Retrieves the first fluid contained by the givenItemStack
.Methods in alexiil.mc.lib.attributes.fluid that return types with arguments of type FluidKeyMethods in alexiil.mc.lib.attributes.fluid with parameters of type FluidKeyModifier 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.final 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
Methods in alexiil.mc.lib.attributes.fluid.compat.mod.vanilla with parameters of type FluidKeyModifier and TypeMethodDescriptionstatic void
VanillaFluidCompat.registerCauldronAttributes
(net.minecraft.block.Block cauldron, FluidKey fluid) -
Uses of FluidKey in alexiil.mc.lib.attributes.fluid.filter
Fields in alexiil.mc.lib.attributes.fluid.filter declared as FluidKeyMethods in alexiil.mc.lib.attributes.fluid.filter that return types with arguments of type FluidKeyModifier 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()
Methods in alexiil.mc.lib.attributes.fluid.filter with parameters of type FluidKeyModifier 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
Method parameters in alexiil.mc.lib.attributes.fluid.filter with type arguments of type FluidKeyModifier 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.Constructors in alexiil.mc.lib.attributes.fluid.filter with parameters of type FluidKeyConstructor parameters in alexiil.mc.lib.attributes.fluid.filter with type arguments of type FluidKey -
Uses of FluidKey in alexiil.mc.lib.attributes.fluid.impl
Methods in alexiil.mc.lib.attributes.fluid.impl that return types with arguments of type FluidKeyModifier and TypeMethodDescriptionCombinedGroupedFluidInvView.getStoredFluids()
DelegatingGroupedFluidInv.getStoredFluids()
EmptyGroupedFluidInv.getStoredFluids()
GroupedFluidInvViewFixedWrapper.getStoredFluids()
Methods in alexiil.mc.lib.attributes.fluid.impl with parameters of type FluidKeyModifier 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
Methods in alexiil.mc.lib.attributes.fluid.item that return types with arguments of type FluidKey -
Uses of FluidKey in alexiil.mc.lib.attributes.fluid.mixin.api
Methods in alexiil.mc.lib.attributes.fluid.mixin.api that return FluidKeyModifier and TypeMethodDescriptionIBucketItem.libblockattributes__getFluid
(net.minecraft.item.ItemStack stack) Methods in alexiil.mc.lib.attributes.fluid.mixin.api with parameters of type FluidKeyModifier and TypeMethodDescriptionnet.minecraft.item.ItemStack
IBucketItem.libblockattributes__withFluid
(FluidKey fluid) -
Uses of FluidKey in alexiil.mc.lib.attributes.fluid.volume
Subclasses of FluidKey in alexiil.mc.lib.attributes.fluid.volumeModifier 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.final class
class
Simple implementation of aFluidKey
that doesn't do anything special.class
Fields in alexiil.mc.lib.attributes.fluid.volume declared as FluidKeyModifier and TypeFieldDescriptionstatic final FluidKey
FluidKeys.EMPTY
final FluidKey
FluidVolume.fluidKey
static final FluidKey
FluidKeys.LAVA
Fields in alexiil.mc.lib.attributes.fluid.volume with type parameters of type FluidKeyModifier and TypeFieldDescriptionstatic final com.google.gson.JsonDeserializer<FluidKey>
FluidKey.DESERIALIZER
Methods in alexiil.mc.lib.attributes.fluid.volume that return FluidKeyModifier 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()
Methods in alexiil.mc.lib.attributes.fluid.volume with parameters of type FluidKeyModifier 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
Constructors in alexiil.mc.lib.attributes.fluid.volume with parameters of type FluidKeyModifierConstructorDescriptionFluidVolume
(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)