Class TitaniumFluid

java.lang.Object
net.minecraft.world.level.material.Fluid
net.minecraft.world.level.material.FlowingFluid
com.hrznstudio.titanium.fluid.TitaniumFluid
All Implemented Interfaces:
net.minecraftforge.common.extensions.IForgeFluid
Direct Known Subclasses:
TitaniumFluid.Flowing, TitaniumFluid.Source

public class TitaniumFluid extends net.minecraft.world.level.material.FlowingFluid
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
     
  • Field Summary

    Fields inherited from class net.minecraft.world.level.material.FlowingFluid

    FALLING, LEVEL

    Fields inherited from class net.minecraft.world.level.material.Fluid

    FLUID_STATE_REGISTRY, stateDefinition
  • Constructor Summary

    Constructors
    Constructor
    Description
    TitaniumFluid(TitaniumFluidInstance titaniumFluidInstance)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    beforeDestroyingBlock(net.minecraft.world.level.LevelAccessor worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
     
    protected boolean
    canBeReplacedWith(net.minecraft.world.level.material.FluidState p_215665_1_, net.minecraft.world.level.BlockGetter p_215665_2_, net.minecraft.core.BlockPos p_215665_3_, net.minecraft.world.level.material.Fluid p_215665_4_, net.minecraft.core.Direction p_215665_5_)
     
    protected boolean
    canConvertToSource(net.minecraft.world.level.Level p_256009_)
     
    boolean
    canConvertToSource(net.minecraft.world.level.material.FluidState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos)
     
    protected net.minecraft.world.level.block.state.BlockState
    createLegacyBlock(net.minecraft.world.level.material.FluidState state)
     
    int
    getAmount(net.minecraft.world.level.material.FluidState p_207192_1_)
     
    net.minecraft.world.item.Item
     
    protected int
    getDropOff(net.minecraft.world.level.LevelReader world)
     
    protected float
     
    net.minecraft.world.level.material.Fluid
     
    net.minecraftforge.fluids.FluidType
     
    protected int
    getSlopeFindDistance(net.minecraft.world.level.LevelReader world)
     
    net.minecraft.world.level.material.Fluid
     
    int
    getTickDelay(net.minecraft.world.level.LevelReader p_205569_1_)
     
    boolean
    isSame(net.minecraft.world.level.material.Fluid fluidIn)
     
    boolean
    isSource(net.minecraft.world.level.material.FluidState state)
     

    Methods inherited from class net.minecraft.world.level.material.FlowingFluid

    canSpreadTo, createFluidStateDefinition, getFlow, getFlowing, getHeight, getLegacyLevel, getNewLiquid, getOwnHeight, getShape, getSlopeDistance, getSource, getSpread, getSpreadDelay, isSolidFace, spread, spreadTo, tick

    Methods inherited from class net.minecraft.world.level.material.Fluid

    animateTick, builtInRegistryHolder, defaultFluidState, getDripParticle, getPickupSound, getStateDefinition, is, isEmpty, isRandomlyTicking, randomTick, registerDefaultState

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeFluid

    canExtinguish, canHydrate, getAdjacentBlockPathType, getBlockPathType, getExplosionResistance, move, supportsBoating
  • Constructor Details

  • Method Details

    • getFlowing

      @Nonnull public net.minecraft.world.level.material.Fluid getFlowing()
      Specified by:
      getFlowing in class net.minecraft.world.level.material.FlowingFluid
    • getSource

      @Nonnull public net.minecraft.world.level.material.Fluid getSource()
      Specified by:
      getSource in class net.minecraft.world.level.material.FlowingFluid
    • canConvertToSource

      public boolean canConvertToSource(net.minecraft.world.level.material.FluidState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos)
      Specified by:
      canConvertToSource in interface net.minecraftforge.common.extensions.IForgeFluid
      Overrides:
      canConvertToSource in class net.minecraft.world.level.material.FlowingFluid
    • canConvertToSource

      protected boolean canConvertToSource(net.minecraft.world.level.Level p_256009_)
      Specified by:
      canConvertToSource in class net.minecraft.world.level.material.FlowingFluid
    • beforeDestroyingBlock

      @ParametersAreNonnullByDefault protected void beforeDestroyingBlock(net.minecraft.world.level.LevelAccessor worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
      Specified by:
      beforeDestroyingBlock in class net.minecraft.world.level.material.FlowingFluid
    • getSlopeFindDistance

      protected int getSlopeFindDistance(@Nonnull net.minecraft.world.level.LevelReader world)
      Specified by:
      getSlopeFindDistance in class net.minecraft.world.level.material.FlowingFluid
    • getDropOff

      protected int getDropOff(@Nonnull net.minecraft.world.level.LevelReader world)
      Specified by:
      getDropOff in class net.minecraft.world.level.material.FlowingFluid
    • getBucket

      @Nonnull public net.minecraft.world.item.Item getBucket()
      Specified by:
      getBucket in class net.minecraft.world.level.material.Fluid
    • canBeReplacedWith

      @ParametersAreNonnullByDefault protected boolean canBeReplacedWith(net.minecraft.world.level.material.FluidState p_215665_1_, net.minecraft.world.level.BlockGetter p_215665_2_, net.minecraft.core.BlockPos p_215665_3_, net.minecraft.world.level.material.Fluid p_215665_4_, net.minecraft.core.Direction p_215665_5_)
      Specified by:
      canBeReplacedWith in class net.minecraft.world.level.material.Fluid
    • getTickDelay

      public int getTickDelay(@Nonnull net.minecraft.world.level.LevelReader p_205569_1_)
      Specified by:
      getTickDelay in class net.minecraft.world.level.material.Fluid
    • getExplosionResistance

      protected float getExplosionResistance()
      Specified by:
      getExplosionResistance in class net.minecraft.world.level.material.Fluid
    • createLegacyBlock

      @Nonnull protected net.minecraft.world.level.block.state.BlockState createLegacyBlock(@Nonnull net.minecraft.world.level.material.FluidState state)
      Specified by:
      createLegacyBlock in class net.minecraft.world.level.material.Fluid
    • isSource

      public boolean isSource(@Nonnull net.minecraft.world.level.material.FluidState state)
      Specified by:
      isSource in class net.minecraft.world.level.material.Fluid
    • getAmount

      public int getAmount(@Nonnull net.minecraft.world.level.material.FluidState p_207192_1_)
      Specified by:
      getAmount in class net.minecraft.world.level.material.FlowingFluid
    • isSame

      public boolean isSame(net.minecraft.world.level.material.Fluid fluidIn)
      Overrides:
      isSame in class net.minecraft.world.level.material.Fluid
    • getFluidType

      public net.minecraftforge.fluids.FluidType getFluidType()
      Specified by:
      getFluidType in interface net.minecraftforge.common.extensions.IForgeFluid
      Overrides:
      getFluidType in class net.minecraft.world.level.material.Fluid