Class FabricFluidHelper

java.lang.Object
de.cech12.bucketlib.platform.FabricFluidHelper
All Implemented Interfaces:
IFluidHelper

public class FabricFluidHelper extends Object implements IFluidHelper
The fluid service implementation for NeoForge.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack
    addFluid(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.material.Fluid fluid)
     
    void
    curePotionEffects(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack curativeItem)
     
    net.minecraft.world.item.ItemStack
    dispenseFluidContainer(net.minecraft.core.dispenser.BlockSource source, net.minecraft.world.item.ItemStack stack)
     
    net.minecraft.world.level.material.Fluid
    getContainedFluid(net.minecraft.world.item.ItemStack stack)
     
    net.minecraft.network.chat.Component
    getFluidDescription(net.minecraft.world.level.material.Fluid fluid)
     
    int
    getFluidLightLevel(net.minecraft.world.level.material.Fluid fluid)
     
    int
    getFluidTemperature(net.minecraft.world.level.material.Fluid fluid)
     
    net.minecraft.world.level.material.Fluid
     
    boolean
     
    boolean
    isFluidLighterThanAir(net.minecraft.world.level.material.Fluid fluid)
     
    net.minecraft.world.item.ItemStack
    removeFluid(net.minecraft.world.item.ItemStack stack, net.minecraft.server.level.ServerLevel level, @Nullable net.minecraft.world.entity.player.Player player)
     
    net.minecraft.util.Tuple<Boolean, net.minecraft.world.item.ItemStack>
    tryPickUpFluid(net.minecraft.world.item.ItemStack stack, @Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level, net.minecraft.world.InteractionHand interactionHand, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction)
     
    net.minecraft.util.Tuple<Boolean, net.minecraft.world.item.ItemStack>
    tryPlaceFluid(net.minecraft.world.item.ItemStack stack, @Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level, net.minecraft.world.InteractionHand interactionHand, net.minecraft.core.BlockPos pos)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface IFluidHelper

    getFluidTintColor
  • Constructor Details

    • FabricFluidHelper

      public FabricFluidHelper()
  • Method Details

    • getFluidDescription

      public net.minecraft.network.chat.Component getFluidDescription(net.minecraft.world.level.material.Fluid fluid)
      Specified by:
      getFluidDescription in interface IFluidHelper
    • getFluidTemperature

      public int getFluidTemperature(net.minecraft.world.level.material.Fluid fluid)
      Specified by:
      getFluidTemperature in interface IFluidHelper
    • getFluidLightLevel

      public int getFluidLightLevel(net.minecraft.world.level.material.Fluid fluid)
      Specified by:
      getFluidLightLevel in interface IFluidHelper
    • isFluidLighterThanAir

      public boolean isFluidLighterThanAir(net.minecraft.world.level.material.Fluid fluid)
      Specified by:
      isFluidLighterThanAir in interface IFluidHelper
    • hasMilkFluid

      public boolean hasMilkFluid()
      Specified by:
      hasMilkFluid in interface IFluidHelper
    • getMilkFluid

      public net.minecraft.world.level.material.Fluid getMilkFluid()
      Specified by:
      getMilkFluid in interface IFluidHelper
    • dispenseFluidContainer

      public net.minecraft.world.item.ItemStack dispenseFluidContainer(net.minecraft.core.dispenser.BlockSource source, net.minecraft.world.item.ItemStack stack)
      Specified by:
      dispenseFluidContainer in interface IFluidHelper
    • getContainedFluid

      public net.minecraft.world.level.material.Fluid getContainedFluid(net.minecraft.world.item.ItemStack stack)
      Specified by:
      getContainedFluid in interface IFluidHelper
    • addFluid

      public net.minecraft.world.item.ItemStack addFluid(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.material.Fluid fluid)
      Specified by:
      addFluid in interface IFluidHelper
    • removeFluid

      public net.minecraft.world.item.ItemStack removeFluid(net.minecraft.world.item.ItemStack stack, net.minecraft.server.level.ServerLevel level, @Nullable @Nullable net.minecraft.world.entity.player.Player player)
      Specified by:
      removeFluid in interface IFluidHelper
    • tryPickUpFluid

      public net.minecraft.util.Tuple<Boolean, net.minecraft.world.item.ItemStack> tryPickUpFluid(net.minecraft.world.item.ItemStack stack, @Nullable @Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level, net.minecraft.world.InteractionHand interactionHand, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction)
      Specified by:
      tryPickUpFluid in interface IFluidHelper
    • tryPlaceFluid

      public net.minecraft.util.Tuple<Boolean, net.minecraft.world.item.ItemStack> tryPlaceFluid(net.minecraft.world.item.ItemStack stack, @Nullable @Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level, net.minecraft.world.InteractionHand interactionHand, net.minecraft.core.BlockPos pos)
      Specified by:
      tryPlaceFluid in interface IFluidHelper
    • curePotionEffects

      public void curePotionEffects(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack curativeItem)
      Specified by:
      curePotionEffects in interface IFluidHelper