Uses of Class
alexiil.mc.lib.attributes.fluid.volume.FluidVolume
Packages that use FluidVolume
Package
Description
The base package for
fluid management.-
Uses of FluidVolume in alexiil.mc.lib.attributes.fluid
Fields in alexiil.mc.lib.attributes.fluid declared as FluidVolumeModifier and TypeFieldDescriptionstatic final FluidVolumeFluidVolumeUtil.EMPTYfinal FluidVolumeFluidVolumeUtil.FluidTankInteraction.fluidMovedA copy of the fluid moved.final FluidVolumeFluidVolumeUtil.FluidTransferResult.inTankTheFluidVolumethat should be placed into the tankfinal FluidVolumeFluidVolumeUtil.FluidTransferResult.resultIf this is returned fromFluidVolumeUtil.computeInsertion(FluidVolume, FluidAmount, FluidVolume)then this is the leftover.Methods in alexiil.mc.lib.attributes.fluid that return FluidVolumeModifier and TypeMethodDescriptiondefault FluidVolumeFluidExtractable.attemptAnyExtraction(int maxAmount, Simulation simulation) Deprecated, for removal: This API element is subject to removal in a future version.default FluidVolumeFluidExtractable.attemptAnyExtraction(FluidAmount maxAmount, Simulation simulation) default FluidVolumeFluidExtractable.attemptExtraction(FluidFilter filter, int maxAmount, Simulation simulation) Deprecated.default FluidVolumeFluidExtractable.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation) SingleFluidTank.attemptExtraction(FluidFilter filter, int maxAmount, Simulation simulation) Deprecated, for removal: This API element is subject to removal in a future version.SingleFluidTank.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation) FluidInsertable.attemptInsertion(FluidVolume fluid, Simulation simulation) Inserts the given stack into this insertable, and returns the excess.SingleFluidTank.attemptInsertion(FluidVolume fluid, Simulation simulation) Deprecated, for removal: This API element is subject to removal in a future version.This has been replaced byFluidAttributes.EXTRACTABLE.default FluidVolumeFluidExtractable.extract(int maxAmount) Deprecated, for removal: This API element is subject to removal in a future version.Replaced byFluidExtractable.extract(FluidAmount)default FluidVolumeFluidExtractable.extract(FluidAmount maxAmount) Attempt to extract *any*FluidVolumefrom this.default FluidVolumeFluidExtractable.extract(FluidFilter filter, int maxAmount) Deprecated, for removal: This API element is subject to removal in a future version.Replaced byFluidExtractable.extract(FluidFilter, FluidAmount).default FluidVolumeFluidExtractable.extract(FluidFilter filter, FluidAmount maxAmount) default FluidVolumeDeprecated, for removal: This API element is subject to removal in a future version.Replaced byFluidExtractable.extract(FluidKey, FluidAmount)default FluidVolumeFluidExtractable.extract(FluidKey filter, FluidAmount maxAmount) default FluidVolumeFixedFluidInv.extractFluid(int tank, FluidFilter filter, FluidVolume mergeWith, FluidAmount maxAmount, Simulation simulation) Attempts to extract part of the fluid volume that is held in the given tank.static FluidVolumeFluidVolumeUtil.extractSingle(FixedFluidInv inv, int tank, FluidFilter filter, FluidVolume toAddWith, int maxAmount, Simulation simulation) Deprecated, for removal: This API element is subject to removal in a future version.static FluidVolumeFluidVolumeUtil.extractSingle(FixedFluidInv inv, int tank, FluidFilter filter, FluidVolume toAddWith, FluidAmount maxAmount, Simulation simulation) Deprecated, for removal: This API element is subject to removal in a future version.final FluidVolumeSingleFluidTankView.get()static FluidVolumeFluidContainerRegistry.getContainedFluid(net.minecraft.item.Item item) Retrieves theFluidVolumecontained by the givenItem, if the item has been registered directly withFluidContainerRegistry.mapContainer(Item, Item, FluidVolume).FixedFluidInvView.getInvFluid(int tank) FluidContainerRegistry.FluidFillFunction.insert(net.minecraft.item.ItemStack stack, FluidVolume fluid, Simulation simulation, FluidContainerRegistry.FluidFillHandler.StackReturnFunc stackReturn) protected abstract FluidVolumeFluidContainerRegistry.FluidFillHandler.insert(net.minecraft.item.ItemStack stack, FluidVolume fluid, Simulation simulation, FluidContainerRegistry.FluidFillHandler.StackReturnFunc stackReturn) default FluidVolumeFluidInsertable.insert(FluidVolume fluid) Inserts the given stack into this insertable, and returns the excess.default FluidVolumeFixedFluidInv.insertFluid(int tank, FluidVolume volume, Simulation simulation) Attempts to insert the given fluid volume into the given tank, returning the excess.static FluidVolumeFluidVolumeUtil.insertSingle(FixedFluidInv inv, int tank, FluidVolume toInsert, Simulation simulation) Deprecated, for removal: This API element is subject to removal in a future version.As this has been moved toFixedFluidInv.insertFluid(int, FluidVolume, Simulation)static FluidVolumeFluidVolumeUtil.move(FluidExtractable from, FluidInsertable to) Attempts to move as much fluid as possible from theFluidExtractableto theFluidInsertable.static FluidVolumeFluidVolumeUtil.move(FluidExtractable from, FluidInsertable to, int maximum) Deprecated, for removal: This API element is subject to removal in a future version.static FluidVolumeFluidVolumeUtil.move(FluidExtractable from, FluidInsertable to, FluidAmount maximum) Attempts to move up to the given amount of fluid from theFluidExtractableto theFluidInsertable.static FluidVolumeFluidVolumeUtil.move(FluidExtractable from, FluidInsertable to, FluidAmount maximum, Simulation simulation) Attempts to move up to the given amount of fluid from theFluidExtractableto theFluidInsertable.static FluidVolumeFluidVolumeUtil.move(FluidExtractable from, FluidInsertable to, FluidFilter filter) Attempts to move up to the given maximum amount of fluids from theFluidExtractableto theFluidInsertable, provided they match the givenFluidFilter.static FluidVolumeFluidVolumeUtil.move(FluidExtractable from, FluidInsertable to, FluidFilter filter, int maximum) Deprecated, for removal: This API element is subject to removal in a future version.static FluidVolumeFluidVolumeUtil.move(FluidExtractable from, FluidInsertable to, FluidFilter filter, FluidAmount maximum) Attempts to move up to the given maximum amount of fluids from theFluidExtractableto theFluidInsertable, provided they match the givenFluidFilter.static FluidVolumeFluidVolumeUtil.move(FluidExtractable from, FluidInsertable to, FluidFilter filter, FluidAmount maximum, Simulation simulation) Attempts to move up to the given maximum amount of fluids from theFluidExtractableto theFluidInsertable, provided they match the givenFluidFilter.static FluidVolumeFluidVolumeUtil.move(FluidExtractable from, FluidInsertable to, FluidFilter filter, Simulation simulation) Attempts to move up to the given maximum amount of fluids from theFluidExtractableto theFluidInsertable, provided they match the givenFluidFilter.static FluidVolumeFluidVolumeUtil.move(FluidExtractable from, FluidInsertable to, Simulation simulation) Attempts to move as much fluid as possible from theFluidExtractableto theFluidInsertable.Methods in alexiil.mc.lib.attributes.fluid that return types with arguments of type FluidVolumeModifier and TypeMethodDescriptiondefault Iterable<FluidVolume>FixedFluidInvView.fluidIterable()Methods in alexiil.mc.lib.attributes.fluid with parameters of type FluidVolumeModifier and TypeMethodDescriptionFluidInsertable.attemptInsertion(FluidVolume fluid, Simulation simulation) Inserts the given stack into this insertable, and returns the excess.SingleFluidTank.attemptInsertion(FluidVolume fluid, Simulation simulation) FluidVolumeUtil.computeExtraction(FluidVolume inTank, FluidFilter filter, FluidAmount maxAmount) Computes the result ofFluidVolumeUtil.extractSingle(FixedFluidInv, int, FluidFilter, FluidVolume, FluidAmount, Simulation), but without actually modifying an inventory.FluidVolumeUtil.computeExtraction(FluidVolume inTank, FluidFilter filter, FluidVolume toAddWith, FluidAmount maxAmount) Computes the result ofFluidVolumeUtil.extractSingle(FixedFluidInv, int, FluidFilter, FluidVolume, FluidAmount, Simulation), but without actually modifying an inventory.FluidVolumeUtil.computeInsertion(FluidVolume current, FluidAmount capacity, FluidVolume toInsert) Computes the result ofFluidVolumeUtil.insertSingle(FixedFluidInv, int, FluidVolume, Simulation), but without actually modifying an inventory.default FluidVolumeFixedFluidInv.extractFluid(int tank, FluidFilter filter, FluidVolume mergeWith, FluidAmount maxAmount, Simulation simulation) Attempts to extract part of the fluid volume that is held in the given tank.static FluidVolumeFluidVolumeUtil.extractSingle(FixedFluidInv inv, int tank, FluidFilter filter, FluidVolume toAddWith, int maxAmount, Simulation simulation) Deprecated, for removal: This API element is subject to removal in a future version.static FluidVolumeFluidVolumeUtil.extractSingle(FixedFluidInv inv, int tank, FluidFilter filter, FluidVolume toAddWith, FluidAmount maxAmount, Simulation simulation) Deprecated, for removal: This API element is subject to removal in a future version.final voidSingleFluidTank.forceSet(FluidVolume to) Sets the stack in the given slot to the given stack, or throws an exception if it was not permitted.default voidFixedFluidInv.forceSetInvFluid(int slot, FluidVolume to) Sets the stack in the given slot to the given stack, or throws an exception if it was not permitted.FluidVolumeUtil.FluidTankInteraction.fromTank(FluidVolume fluid) Deprecated, for removal: This API element is subject to removal in a future version.FluidContainerRegistry.FluidFillFunction.insert(net.minecraft.item.ItemStack stack, FluidVolume fluid, Simulation simulation, FluidContainerRegistry.FluidFillHandler.StackReturnFunc stackReturn) protected abstract FluidVolumeFluidContainerRegistry.FluidFillHandler.insert(net.minecraft.item.ItemStack stack, FluidVolume fluid, Simulation simulation, FluidContainerRegistry.FluidFillHandler.StackReturnFunc stackReturn) default FluidVolumeFluidInsertable.insert(FluidVolume fluid) Inserts the given stack into this insertable, and returns the excess.default FluidVolumeFixedFluidInv.insertFluid(int tank, FluidVolume volume, Simulation simulation) Attempts to insert the given fluid volume into the given tank, returning the excess.static FluidVolumeFluidVolumeUtil.insertSingle(FixedFluidInv inv, int tank, FluidVolume toInsert, Simulation simulation) Deprecated, for removal: This API element is subject to removal in a future version.As this has been moved toFixedFluidInv.insertFluid(int, FluidVolume, Simulation)FluidVolumeUtil.FluidTankInteraction.intoTank(FluidVolume fluid) Deprecated, for removal: This API element is subject to removal in a future version.booleanSingleFluidTank.isValid(FluidVolume value) static voidFluidContainerRegistry.mapContainer(net.minecraft.item.Item empty, net.minecraft.item.Item full, FluidVolume fluid) Directly maps a givenItemas containing the given fluid, with anotherItemas the empty container.default booleanFluidInsertable.offer(FluidVolume object) Deprecated.This is an override forLimitedConsumer, for the full javadoc you probably want to callFluidInsertable.insert(FluidVolume)directly.default booleanFluidInsertable.offer(FluidVolume fluid, Simulation simulation) Deprecated.This is an override forLimitedConsumer, for the full javadoc you probably want to callFluidInsertable.attemptInsertion(FluidVolume, Simulation)directly.voidFluidInvTankChangeListener.onChange(FixedFluidInvView inv, int tank, FluidVolume previous, FluidVolume current) booleanSingleFluidTank.set(FluidVolume value) final booleanSingleFluidTank.set(FluidVolume to, Simulation simulation) booleanFixedFluidInv.setInvFluid(int tank, FluidVolume to, Simulation simulation) Sets the fluid in the given tank to the given fluid.default booleanFluidInsertable.wouldAccept(FluidVolume object) Deprecated.This is an override forLimitedConsumer, for the full javadoc you probably want to callattemptInsertion(FluidVolume, Simulation.SIMULATE) directly.Method parameters in alexiil.mc.lib.attributes.fluid with type arguments of type FluidVolumeModifier and TypeMethodDescriptionfinal voidSingleFluidTank.modify(Function<FluidVolume, FluidVolume> function) Applies the given function to the stack held in the slot, and usesSingleFluidTank.forceSet(FluidVolume)on the result (Which will throw an exception if the returned stack is not valid for this tank).final voidSingleFluidTank.modify(Function<FluidVolume, FluidVolume> function) Applies the given function to the stack held in the slot, and usesSingleFluidTank.forceSet(FluidVolume)on the result (Which will throw an exception if the returned stack is not valid for this tank).default voidFixedFluidInv.modifyTank(int tank, Function<FluidVolume, FluidVolume> function) Applies the given function to the stack held in the slot, and usesFixedFluidInv.forceSetInvFluid(int, FluidVolume)on the result (Which will throw an exception if the returned stack is not valid for this inventory).default voidFixedFluidInv.modifyTank(int tank, Function<FluidVolume, FluidVolume> function) Applies the given function to the stack held in the slot, and usesFixedFluidInv.forceSetInvFluid(int, FluidVolume)on the result (Which will throw an exception if the returned stack is not valid for this inventory).Constructors in alexiil.mc.lib.attributes.fluid with parameters of type FluidVolumeModifierConstructorDescriptionFluidTankInteraction(FluidVolume fluidMoved, boolean intoTank) Deprecated, for removal: This API element is subject to removal in a future version.FluidTankInteraction(FluidVolume fluidMoved, boolean intoTank, FluidVolumeUtil.ItemContainerStatus intoTankStatus, FluidVolumeUtil.ItemContainerStatus fromTankStatus) Constructs a newFluidVolumeUtil.FluidTankInteractionobject.FluidTransferResult(FluidVolume result, FluidVolume inTank) -
Uses of FluidVolume in alexiil.mc.lib.attributes.fluid.impl
Fields in alexiil.mc.lib.attributes.fluid.impl with type parameters of type FluidVolumeModifier and TypeFieldDescriptionprotected final net.minecraft.util.collection.DefaultedList<FluidVolume>SimpleFixedFluidInv.tanksMethods in alexiil.mc.lib.attributes.fluid.impl that return FluidVolumeModifier and TypeMethodDescriptionDelegatingGroupedFluidInv.attemptAnyExtraction(FluidAmount maxAmount, Simulation simulation) SimpleFixedFluidInv.attemptAnyExtraction(FluidAmount maxAmount, Simulation simulation) CombinedFluidExtractable.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation) CombinedGroupedFluidInv.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation) DelegatingGroupedFluidInv.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation) EmptyFluidExtractable.attemptExtraction(FluidFilter filter, int maxAmount, Simulation simulation) Deprecated, for removal: This API element is subject to removal in a future version.EmptyFluidExtractable.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation) EmptyFluidTransferable.attemptExtraction(FluidFilter filter, int maxAmount, Simulation simulation) EmptyGroupedFluidInv.attemptExtraction(FluidFilter filter, int maxAmount, Simulation simulation) FilteredFluidExtractable.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation) FilteredFluidTransferable.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation) GroupedFluidInvFixedWrapper.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation) SimpleFixedFluidInv.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation) SimpleFixedFluidInvExtractable.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation) Deprecated, for removal: This API element is subject to removal in a future version.SimpleLimitedGroupedFluidInv.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation) CombinedFluidInsertable.attemptInsertion(FluidVolume stack, Simulation simulation) CombinedGroupedFluidInv.attemptInsertion(FluidVolume fluid, Simulation simulation) DelegatingGroupedFluidInv.attemptInsertion(FluidVolume fluid, Simulation simulation) EmptyFluidTransferable.attemptInsertion(FluidVolume fluid, Simulation simulation) EmptyGroupedFluidInv.attemptInsertion(FluidVolume fluid, Simulation simulation) FilteredFluidInsertable.attemptInsertion(FluidVolume fluid, Simulation simulation) FilteredFluidTransferable.attemptInsertion(FluidVolume fluid, Simulation simulation) GroupedFluidInvFixedWrapper.attemptInsertion(FluidVolume fluid, Simulation simulation) RejectingFluidInsertable.attemptInsertion(FluidVolume stack, Simulation simulation) SimpleFixedFluidInv.attemptInsertion(FluidVolume fluid, Simulation simulation) SimpleFixedFluidInvInsertable.attemptInsertion(FluidVolume fluid, Simulation simulation) Deprecated, for removal: This API element is subject to removal in a future version.SimpleLimitedGroupedFluidInv.attemptInsertion(FluidVolume fluid, Simulation simulation) AbstractPartialFixedFluidInvView.getInvFluid(int tank) CombinedFixedFluidInvView.getInvFluid(int tank) DelegatingFixedFluidInv.getInvFluid(int tank) EmptyFixedFluidInv.getInvFluid(int tank) SimpleFixedFluidInv.getInvFluid(int tank) Methods in alexiil.mc.lib.attributes.fluid.impl with parameters of type FluidVolumeModifier and TypeMethodDescriptionCombinedFluidInsertable.attemptInsertion(FluidVolume stack, Simulation simulation) CombinedGroupedFluidInv.attemptInsertion(FluidVolume fluid, Simulation simulation) DelegatingGroupedFluidInv.attemptInsertion(FluidVolume fluid, Simulation simulation) EmptyFluidTransferable.attemptInsertion(FluidVolume fluid, Simulation simulation) EmptyGroupedFluidInv.attemptInsertion(FluidVolume fluid, Simulation simulation) FilteredFluidInsertable.attemptInsertion(FluidVolume fluid, Simulation simulation) FilteredFluidTransferable.attemptInsertion(FluidVolume fluid, Simulation simulation) GroupedFluidInvFixedWrapper.attemptInsertion(FluidVolume fluid, Simulation simulation) RejectingFluidInsertable.attemptInsertion(FluidVolume stack, Simulation simulation) SimpleFixedFluidInv.attemptInsertion(FluidVolume fluid, Simulation simulation) SimpleFixedFluidInvInsertable.attemptInsertion(FluidVolume fluid, Simulation simulation) Deprecated, for removal: This API element is subject to removal in a future version.SimpleLimitedGroupedFluidInv.attemptInsertion(FluidVolume fluid, Simulation simulation) protected final voidSimpleFixedFluidInv.fireTankChange(int tank, FluidVolume previous, FluidVolume current) booleanCombinedFixedFluidInv.setInvFluid(int tank, FluidVolume to, Simulation simulation) booleanDelegatingFixedFluidInv.setInvFluid(int tank, FluidVolume to, Simulation simulation) booleanEmptyFixedFluidInv.setInvFluid(int tank, FluidVolume to, Simulation simulation) booleanMappedFixedFluidInv.setInvFluid(int tank, FluidVolume to, Simulation simulation) booleanSimpleFixedFluidInv.setInvFluid(int tank, FluidVolume to, Simulation simulation) booleanSimpleLimitedFixedFluidInv.setInvFluid(int tank, FluidVolume to, Simulation simulation) booleanSubFixedFluidInv.setInvFluid(int tank, FluidVolume to, Simulation simulation) -
Uses of FluidVolume in alexiil.mc.lib.attributes.fluid.item
Fields in alexiil.mc.lib.attributes.fluid.item declared as FluidVolumeMethods in alexiil.mc.lib.attributes.fluid.item that return FluidVolumeModifier and TypeMethodDescriptionItemBasedSingleFluidInv.attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation) ItemBasedSingleFluidInv.attemptInsertion(FluidVolume fluid, Simulation simulation) Methods in alexiil.mc.lib.attributes.fluid.item with parameters of type FluidVolumeModifier and TypeMethodDescriptionItemBasedSingleFluidInv.attemptInsertion(FluidVolume fluid, Simulation simulation) protected abstract net.minecraft.item.ItemStackItemBasedSingleFluidInv.writeToStack(net.minecraft.item.ItemStack stack, FluidVolume fluid) Constructors in alexiil.mc.lib.attributes.fluid.item with parameters of type FluidVolume -
Uses of FluidVolume in alexiil.mc.lib.attributes.fluid.render
Methods in alexiil.mc.lib.attributes.fluid.render with parameters of type FluidVolumeModifier and TypeMethodDescriptionprotected static net.minecraft.client.render.RenderLayerFluidVolumeRenderer.getRenderLayer(FluidVolume fluid) protected static net.minecraft.client.texture.Sprite[]FluidVolumeRenderer.getSprites(FluidVolume fluid) voidDefaultFluidVolumeRenderer.render(FluidVolume fluid, List<FluidRenderFace> faces, net.minecraft.client.render.VertexConsumerProvider vcp, net.minecraft.client.util.math.MatrixStack matrices) voidEnchantmentGlintFluidRenderer.render(FluidVolume fluid, List<FluidRenderFace> faces, net.minecraft.client.render.VertexConsumerProvider vcp, net.minecraft.client.util.math.MatrixStack matrices) abstract voidFluidVolumeRenderer.render(FluidVolume fluid, List<FluidRenderFace> faces, net.minecraft.client.render.VertexConsumerProvider vcp, net.minecraft.client.util.math.MatrixStack matrices) Renders a list of faces of the given fluid at the specified co-ordinates.voidImplicitVanillaFluidVolumeRenderer.render(FluidVolume fluid, List<FluidRenderFace> faces, net.minecraft.client.render.VertexConsumerProvider vcp, net.minecraft.client.util.math.MatrixStack matrices) Deprecated, for removal: This API element is subject to removal in a future version.voidFluidVolumeRenderer.renderGuiRectangle(FluidVolume fluid, double x0, double y0, double x1, double y1) -
Uses of FluidVolume in alexiil.mc.lib.attributes.fluid.volume
Subclasses of FluidVolume in alexiil.mc.lib.attributes.fluid.volumeModifier and TypeClassDescriptionclassA fluid that changes it's makup based on theBiomes that it is taken from.classA fluid volume that stores it's colours as 4 floats: red, green, blue, and alpha.classDeprecated, for removal: This API element is subject to removal in a future version.Because anyFluidKeycan map to a singleFluid, andSimpleFluidVolumehas a much better name than this.final classclassSimple implementation of aFluidVolumethat doesn't do anything special.classFields in alexiil.mc.lib.attributes.fluid.volume with type parameters of type FluidVolumeModifier and TypeFieldDescriptionstatic final com.google.gson.JsonDeserializer<FluidVolume>FluidVolume.DESERIALIZERMethods in alexiil.mc.lib.attributes.fluid.volume that return FluidVolumeModifier and TypeMethodDescriptionfinal FluidVolumeFluidVolume.copy()protected FluidVolumeFluidVolume.copy0()static FluidVolumeDeprecated, for removal: This API element is subject to removal in a future version.static FluidVolumeFluidVolume.create(net.minecraft.fluid.Fluid fluid, int amount) Deprecated, for removal: This API element is subject to removal in a future version.static FluidVolumeFluidVolume.create(net.minecraft.potion.Potion potion, int amount) Deprecated, for removal: This API element is subject to removal in a future version.protected FluidVolumeFluidKey.createFromMcBuffer(net.minecraft.network.PacketByteBuf buffer, FluidAmount amount) Creates a newFluidVolumeand reads it from the buffer withfromMcBufferInternal(PacketByteBuf).static FluidVolumeFluidVolume.fromJson(com.google.gson.JsonObject json) static FluidVolumeFluidVolume.fromMcBuffer(net.minecraft.network.PacketByteBuf buffer) static FluidVolumeFluidVolume.fromTag(net.minecraft.nbt.NbtCompound tag) BiomeSourcedFluidKey.fromWorld(net.minecraft.world.WorldView world, net.minecraft.util.math.BlockPos pos) FluidKey.fromWorld(net.minecraft.world.WorldView world, net.minecraft.util.math.BlockPos pos) Called when this is pumped out from the world.static FluidVolumeFluidVolume.merge(FluidVolume a, FluidVolume b) static FluidVolumeFluidVolume.merge(FluidVolume a, FluidVolume b, FluidAmount.FluidMergeRounding rounding) FluidVolume.multiplyAmount(int by) Returns a newFluidVolumethat is a copy of this one, but with an amount multiplied by the given amount.FluidKey.readVolume(com.google.gson.JsonObject json) abstract FluidVolumeFluidKey.readVolume(net.minecraft.nbt.NbtCompound tag) final FluidVolumeFluidKey.readVolume(net.minecraft.network.PacketByteBuf buffer) Reads aFluidVolumefrom thePacketByteBuf.SimpleFluidKey.readVolume(com.google.gson.JsonObject json) SimpleFluidKey.readVolume(net.minecraft.nbt.NbtCompound tag) final FluidVolumeFluidVolume.split(int toRemove) Deprecated, for removal: This API element is subject to removal in a future version.Replaced bysplit(FluidAmount)final FluidVolumeFluidVolume.split(FluidAmount toRemove) Splits off the given amount of fluid and returns it, reducing this amount as well.
If the given amount is greater than this then the returnedFluidVolumewill have an amount equal to this amount, and not the amount given.final FluidVolumeFluidVolume.split(FluidAmount toRemove, RoundingMode rounding) Splits off the given amount of fluid and returns it, reducing this amount as well.
If the given amount is greater than this then the returnedFluidVolumewill have an amount equal to this amount, and not the amount given.protected FluidVolumeColouredFluidVolume.split0(FluidAmount toTake, RoundingMode rounding) protected FluidVolumeFluidVolume.split0(FluidAmount toTake, RoundingMode rounding) FluidKey.withAmount(int amount) Deprecated, for removal: This API element is subject to removal in a future version.FluidKey.withAmount(FluidAmount amount) FluidVolume.withAmount(FluidAmount newAmount) Creates a copy of this fluid with the given amount.SimpleFluidKey.withAmount(FluidAmount amount) Methods in alexiil.mc.lib.attributes.fluid.volume with parameters of type FluidVolumeModifier and TypeMethodDescriptiondefault voidFluidTemperature.addTemperatureToTooltip(FluidVolume fluid, FluidTooltipContext context, List<net.minecraft.text.Text> tooltip) voidFluidProperty.addTooltipExtras(FluidVolume fluid, FluidTooltipContext context, List<net.minecraft.text.Text> tooltip) Adds tooltip extras for this fluid property when getting the tooltip for a fullFluidVolume.static booleanFluidVolume.areEqualExceptAmounts(FluidVolume a, FluidVolume b) static booleanFluidVolume.areFullyEqual(FluidVolume a, FluidVolume b) Deprecated, for removal: This API element is subject to removal in a future version.UseObject.equals(Object)instead of this.final booleanFluidVolume.canMerge(FluidVolume with) Checks to see if the givenFluidVolumecan merge into this one.final TFluidProperty.get(FluidVolume volume) Helper method to obtain this property from the given fluid.doubleFluidTemperature.ContinuousFluidTemperature.getTemperature(FluidVolume fluid) default doubleFluidTemperature.DiscreteFluidTemperature.getTemperature(FluidVolume fluid) doubleFluidTemperature.getTemperature(FluidVolume fluid) protected abstract TFluidProperty.merge(FluidVolume volumeA, FluidVolume volumeB, FluidAmount amount, T valueA, T valueB) Merges two values together, using the twoFluidVolumes for context.final booleanFluidVolume.merge(FluidVolume other, FluidAmount.FluidMergeRounding rounding, Simulation simulation) static FluidVolumeFluidVolume.merge(FluidVolume a, FluidVolume b) static FluidVolumeFluidVolume.merge(FluidVolume a, FluidVolume b, FluidAmount.FluidMergeRounding rounding) final booleanFluidVolume.merge(FluidVolume other, Simulation simulation) protected voidFluidVolume.merge0(FluidVolume other, FluidAmount.FluidMergeRounding rounding) Deprecated, for removal: This API element is subject to removal in a future version.becausemergeInternal(FluidVolume, FluidMergeResult)allows every method to share the sameFluidAmount.FluidMergeResultobject, which reduces the chance to make a mistake when merging the two amounts.protected voidColouredFluidVolume.mergeInternal(FluidVolume other, FluidAmount.FluidMergeResult mergedAmounts) protected voidFluidVolume.mergeInternal(FluidVolume other, FluidAmount.FluidMergeResult mergedAmounts) Actually merges twoFluidVolume's together.protected voidWeightedFluidVolume.mergeInternal(FluidVolume vol, FluidAmount.FluidMergeResult result) static booleanFluidVolume.mergeInto(FluidVolume source, FluidVolume target) Merges as much fluid as possible from the source into the target, leaving the result in thestatic booleanFluidVolume.mergeInto(FluidVolume source, FluidVolume target, FluidAmount.FluidMergeRounding rounding) Merges as much fluid as possible from the source into the target, leaving the result in thestatic booleanFluidVolume.mergeInto(FluidVolume source, FluidVolume target, FluidAmount.FluidMergeRounding rounding, Simulation simulation) Merges as much fluid as possible from the source into the target, leaving the result in the source.final voidFluidProperty.set(FluidVolume volume, T value) Helper method to set a value for this property to the given fluid. -
Uses of FluidVolume in alexiil.mc.lib.attributes.fluid.world
Methods in alexiil.mc.lib.attributes.fluid.world that return FluidVolumeModifier and TypeMethodDescriptionstatic FluidVolumeFluidWorldUtil.drain(net.minecraft.world.WorldAccess world, net.minecraft.util.math.BlockPos pos, Simulation simulation) Attempts to drain the given block of it's fluid.static FluidVolumeFluidWorldUtil.fill(net.minecraft.world.WorldAccess world, net.minecraft.util.math.BlockPos pos, FluidVolume volume, Simulation simulation) Attempts to place the given fluid volume into the given block position.IFluidVolumeDrainable.tryDrainFluid(net.minecraft.world.WorldAccess world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, Simulation simulation) Methods in alexiil.mc.lib.attributes.fluid.world with parameters of type FluidVolumeModifier and TypeMethodDescriptionstatic FluidVolumeFluidWorldUtil.fill(net.minecraft.world.WorldAccess world, net.minecraft.util.math.BlockPos pos, FluidVolume volume, Simulation simulation) Attempts to place the given fluid volume into the given block position.
FluidExtractable.attemptAnyExtraction(FluidAmount, Simulation)