Class Fluid

    • Constructor Detail

      • Fluid

        protected Fluid()
    • Method Detail

      • registerDefaultState

        protected final void registerDefaultState​(FluidState p_207183_1_)
      • defaultFluidState

        public final FluidState defaultFluidState()
      • getBucket

        public abstract Item getBucket()
      • animateTick

        protected void animateTick​(World p_204522_1_,
                                   BlockPos p_204522_2_,
                                   FluidState p_204522_3_,
                                   java.util.Random p_204522_4_)
      • randomTick

        protected void randomTick​(World p_207186_1_,
                                  BlockPos p_207186_2_,
                                  FluidState p_207186_3_,
                                  java.util.Random p_207186_4_)
      • getDripParticle

        @Nullable
        protected IParticleData getDripParticle()
      • getTickDelay

        public abstract int getTickDelay​(IWorldReader p_205569_1_)
      • isRandomlyTicking

        protected boolean isRandomlyTicking()
      • isEmpty

        protected boolean isEmpty()
      • getExplosionResistance

        protected abstract float getExplosionResistance()
      • getOwnHeight

        public abstract float getOwnHeight​(FluidState p_223407_1_)
      • isSource

        public abstract boolean isSource​(FluidState p_207193_1_)
      • getAmount

        public abstract int getAmount​(FluidState p_207192_1_)
      • isSame

        public boolean isSame​(Fluid p_207187_1_)
      • is

        public boolean is​(ITag<Fluid> p_207185_1_)
      • getTags

        public java.util.Set<ResourceLocation> getTags()
        Description copied from interface: IForgeFluid
        Retrieves a list of tags names this is known to be associated with. This should be used in favor of TagCollection.getOwningTags, as this caches the result and automatically updates when the TagCollection changes.
        Specified by:
        getTags in interface IForgeFluid
      • createAttributes

        protected FluidAttributes createAttributes()
        Creates the fluid attributes object, which will contain all the extended values for the fluid that aren't part of the vanilla system. Do not call this from outside. To retrieve the values use getAttributes()