Class AbstractFluidBlock

java.lang.Object
net.minecraft.block.Block
net.minecraft.block.AbstractFluidBlock
Direct Known Subclasses:
FlowingFluidBlock, FluidBlock

public abstract class AbstractFluidBlock extends Block
Mappings:
Namespace Name
official axl
intermediary net/minecraft/class_153
named net/minecraft/block/AbstractFluidBlock
  • Field Details

    • LEVEL

      public static final IntProperty LEVEL
      Mappings:
      Namespace Name Mixin selector
      official b Laxl;b:Lbew;
      intermediary field_9523 Lnet/minecraft/class_153;field_9523:Lnet/minecraft/class_2246;
      named LEVEL Lnet/minecraft/block/AbstractFluidBlock;LEVEL:Lnet/minecraft/state/property/IntProperty;
  • Constructor Details

    • AbstractFluidBlock

      protected AbstractFluidBlock(Material material)
      Parameters:
      material - The block's material
      Mappings:
      Namespace Name Mixin selector
      official <init> Latr;<init>(Lbof;)V
      intermediary <init> Lnet/minecraft/class_197;<init>(Lnet/minecraft/class_63;)V
      named <init> Lnet/minecraft/block/Block;<init>(Lnet/minecraft/block/Material;)V
  • Method Details

    • blocksMovement

      public boolean blocksMovement(BlockView view, BlockPos pos)
      Overrides:
      blocksMovement in class Block
      Mappings:
      Namespace Name Mixin selector
      official b Latr;b(Lard;Ldt;)Z
      intermediary method_8663 Lnet/minecraft/class_197;method_8663(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Z
      named blocksMovement Lnet/minecraft/block/Block;blocksMovement(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
    • getBlockColor

      @Environment(CLIENT) public int getBlockColor(BlockView view, BlockPos pos, int id)
      Returns the current block's color
      Overrides:
      getBlockColor in class Block
      Parameters:
      view - BlockView instance
      pos - The block's position
      id - Id
      Returns:
      Block color
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Lard;Ldt;I)I
      intermediary method_438 Lnet/minecraft/class_197;method_438(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;I)I
      named getBlockColor Lnet/minecraft/block/Block;getBlockColor(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;I)I
    • getHeightPercent

      public static float getHeightPercent(int height)
      Mappings:
      Namespace Name Mixin selector
      official b Laxl;b(I)F
      intermediary method_330 Lnet/minecraft/class_153;method_330(I)F
      named getHeightPercent Lnet/minecraft/block/AbstractFluidBlock;getHeightPercent(I)F
    • getFluidLevel

      protected int getFluidLevel(BlockView world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official e Laxl;e(Lard;Ldt;)I
      intermediary method_8820 Lnet/minecraft/class_153;method_8820(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)I
      named getFluidLevel Lnet/minecraft/block/AbstractFluidBlock;getFluidLevel(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)I
    • getFlowReduction

      protected int getFlowReduction(BlockView world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official f Laxl;f(Lard;Ldt;)I
      intermediary method_8821 Lnet/minecraft/class_153;method_8821(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)I
      named getFlowReduction Lnet/minecraft/block/AbstractFluidBlock;getFlowReduction(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)I
    • renderAsNormalBlock

      public boolean renderAsNormalBlock()
      Returns whether the block can be rendered as a normal block
      Overrides:
      renderAsNormalBlock in class Block
      Returns:
      Whether the block can be rendered as a normal block
      Mappings:
      Namespace Name Mixin selector
      official d Latr;d()Z
      intermediary method_441 Lnet/minecraft/class_197;method_441()Z
      named renderAsNormalBlock Lnet/minecraft/block/Block;renderAsNormalBlock()Z
    • hasTransperancy

      public boolean hasTransperancy()
      Overrides:
      hasTransperancy in class Block
      Mappings:
      Namespace Name Mixin selector
      official c Latr;c()Z
      intermediary method_449 Lnet/minecraft/class_197;method_449()Z
      named hasTransperancy Lnet/minecraft/block/Block;hasTransperancy()Z
    • canCollide

      public boolean canCollide(BlockState state, boolean bl)
      Returns whether entities can collide with the block
      Overrides:
      canCollide in class Block
      Parameters:
      state - The block's BlockState
      Returns:
      Whether the block has collision
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Lbec;Z)Z
      intermediary method_400 Lnet/minecraft/class_197;method_400(Lnet/minecraft/class_2232;Z)Z
      named canCollide Lnet/minecraft/block/Block;canCollide(Lnet/minecraft/block/BlockState;Z)Z
    • hasCollision

      public boolean hasCollision(BlockView blockView, BlockPos pos, Direction direction)
      Overrides:
      hasCollision in class Block
      Mappings:
      Namespace Name Mixin selector
      official b Latr;b(Lard;Ldt;Lej;)Z
      intermediary method_8665 Lnet/minecraft/class_197;method_8665(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Z
      named hasCollision Lnet/minecraft/block/Block;hasCollision(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
    • isSideInvisible

      @Environment(CLIENT) public boolean isSideInvisible(BlockView view, BlockPos pos, Direction facing)
      Returns whether the current block has connected sides, i.e its side faces are invisible when covered by other blocks. Used by glass to prevent the white dots from appearing everywhere through adjacent glass blocks.
      Overrides:
      isSideInvisible in class Block
      Parameters:
      view - BlockView instance
      pos - The current block's position
      facing - The direction the block is facing
      Returns:
      Whether the current block has connected sides
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Lard;Ldt;Lej;)Z
      intermediary method_8654 Lnet/minecraft/class_197;method_8654(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Z
      named isSideInvisible Lnet/minecraft/block/Block;isSideInvisible(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
    • shouldDisableCullingSides

      @Environment(CLIENT) public boolean shouldDisableCullingSides(BlockView world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official g Laxl;g(Lard;Ldt;)Z
      intermediary method_8822 Lnet/minecraft/class_153;method_8822(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Z
      named shouldDisableCullingSides Lnet/minecraft/block/AbstractFluidBlock;shouldDisableCullingSides(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
    • getCollisionBox

      public Box getCollisionBox(World world, BlockPos pos, BlockState state)
      Returns a box by adding the block's current location and the block's corresponding value in its Bounding Box
      Overrides:
      getCollisionBox in class Block
      Parameters:
      world - The world that the block has been placed
      pos - The block's position
      state - The block's BlockState
      Returns:
      The Collision box
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Laqu;Ldt;Lbec;)Lbrt;
      intermediary method_8640 Lnet/minecraft/class_197;method_8640(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Lnet/minecraft/class_231;
      named getCollisionBox Lnet/minecraft/block/Block;getCollisionBox(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/math/Box;
    • getBlockType

      public int getBlockType()
      Overrides:
      getBlockType in class Block
      Mappings:
      Namespace Name Mixin selector
      official b Latr;b()I
      intermediary method_429 Lnet/minecraft/class_197;method_429()I
      named getBlockType Lnet/minecraft/block/Block;getBlockType()I
    • getDropItem

      public Item getDropItem(BlockState blockState, Random random, int state)
      Returns the item that must be dropped when the block is broken
      Overrides:
      getDropItem in class Block
      Parameters:
      blockState - The block's BlockState
      random - Random object
      state - State
      Returns:
      The Item that drops after the block breaks
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Lbec;Ljava/util/Random;I)Lalq;
      intermediary method_398 Lnet/minecraft/class_197;method_398(Lnet/minecraft/class_2232;Ljava/util/Random;I)Lnet/minecraft/class_1069;
      named getDropItem Lnet/minecraft/block/Block;getDropItem(Lnet/minecraft/block/BlockState;Ljava/util/Random;I)Lnet/minecraft/item/Item;
    • getDropCount

      public int getDropCount(Random rand)
      Returns the amount of items the block should drop on breaking without bonus rolls.
      Overrides:
      getDropCount in class Block
      Parameters:
      rand - Random object
      Returns:
      Amount of items to be dropped
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Ljava/util/Random;)I
      intermediary method_403 Lnet/minecraft/class_197;method_403(Ljava/util/Random;)I
      named getDropCount Lnet/minecraft/block/Block;getDropCount(Ljava/util/Random;)I
    • getFluidVec

      protected Vec3d getFluidVec(BlockView world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official h Laxl;h(Lard;Ldt;)Lbrw;
      intermediary method_8823 Lnet/minecraft/class_153;method_8823(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_236;
      named getFluidVec Lnet/minecraft/block/AbstractFluidBlock;getFluidVec(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Vec3d;
    • onEntityCollision

      public Vec3d onEntityCollision(World world, BlockPos pos, Entity entity, Vec3d velocity)
      Overrides:
      onEntityCollision in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Laqu;Ldt;Lwv;Lbrw;)Lbrw;
      intermediary method_8648 Lnet/minecraft/class_197;method_8648(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_864;Lnet/minecraft/class_236;)Lnet/minecraft/class_236;
      named onEntityCollision Lnet/minecraft/block/Block;onEntityCollision(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Vec3d;
    • getTickRate

      public int getTickRate(World world)
      Returns the block's tick rate. Default is 10.
      Overrides:
      getTickRate in class Block
      Parameters:
      world - The world that the block is placed in
      Returns:
      Tick rate
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Laqu;)I
      intermediary method_4789 Lnet/minecraft/class_197;method_4789(Lnet/minecraft/class_1150;)I
      named getTickRate Lnet/minecraft/block/Block;getTickRate(Lnet/minecraft/world/World;)I
    • getBrightness

      @Environment(CLIENT) public int getBrightness(BlockView blockView, BlockPos pos)
      Overrides:
      getBrightness in class Block
      Mappings:
      Namespace Name Mixin selector
      official c Latr;c(Lard;Ldt;)I
      intermediary method_8670 Lnet/minecraft/class_197;method_8670(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)I
      named getBrightness Lnet/minecraft/block/Block;getBrightness(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)I
    • getRenderLayerType

      @Environment(CLIENT) public BlockRenderLayer getRenderLayerType()
      Returns the appropriate RenderLayer for a block. Only called on the client.
      Overrides:
      getRenderLayerType in class Block
      Returns:
      The block's RenderLayer
      Mappings:
      Namespace Name Mixin selector
      official k Latr;k()Laql;
      intermediary method_8687 Lnet/minecraft/class_197;method_8687()Lnet/minecraft/class_2165;
      named getRenderLayerType Lnet/minecraft/block/Block;getRenderLayerType()Lnet/minecraft/client/render/BlockRenderLayer;
    • randomDisplayTick

      @Environment(CLIENT) public void randomDisplayTick(World world, BlockPos pos, BlockState state, Random rand)
      Runs every random display Tick. Useful for displaying particles around a block, like Redstone Ore.
      Overrides:
      randomDisplayTick in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      rand - Random object
      Mappings:
      Namespace Name Mixin selector
      official c Latr;c(Laqu;Ldt;Lbec;Ljava/util/Random;)V
      intermediary method_8669 Lnet/minecraft/class_197;method_8669(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Ljava/util/Random;)V
      named randomDisplayTick Lnet/minecraft/block/Block;randomDisplayTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/Random;)V
    • getDirection

      @Environment(CLIENT) public static double getDirection(BlockView world, BlockPos pos, Material material)
      Mappings:
      Namespace Name Mixin selector
      official a Laxl;a(Lard;Ldt;Lbof;)D
      intermediary method_8815 Lnet/minecraft/class_153;method_8815(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_63;)D
      named getDirection Lnet/minecraft/block/AbstractFluidBlock;getDirection(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Material;)D
    • onCreation

      public void onCreation(World world, BlockPos pos, BlockState state)
      Runs when the block is placed (by a player or enderman).
      Overrides:
      onCreation in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      Mappings:
      Namespace Name Mixin selector
      official c Latr;c(Laqu;Ldt;Lbec;)V
      intermediary method_8668 Lnet/minecraft/class_197;method_8668(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)V
      named onCreation Lnet/minecraft/block/Block;onCreation(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • neighborUpdate

      public void neighborUpdate(World world, BlockPos pos, BlockState state, Block block)
      Runs when its adjacent blocks are updated. It will also run when the block is placed or removed as Air is being updated.
      Overrides:
      neighborUpdate in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      block - The adjacent Block that updated the current block
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Laqu;Ldt;Lbec;Latr;)V
      intermediary method_8641 Lnet/minecraft/class_197;method_8641(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_197;)V
      named neighborUpdate Lnet/minecraft/block/Block;neighborUpdate(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/Block;)V
    • update

      public boolean update(World world, BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official e Laxl;e(Laqu;Ldt;Lbec;)Z
      intermediary method_8819 Lnet/minecraft/class_153;method_8819(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Z
      named update Lnet/minecraft/block/AbstractFluidBlock;update(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
    • playExtinguishEffects

      protected void playExtinguishEffects(World world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official d Laxl;d(Laqu;Ldt;)V
      intermediary method_8818 Lnet/minecraft/class_153;method_8818(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)V
      named playExtinguishEffects Lnet/minecraft/block/AbstractFluidBlock;playExtinguishEffects(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
    • stateFromData

      public BlockState stateFromData(int data)
      Returns a blockstate of the current block from it's id
      Overrides:
      stateFromData in class Block
      Parameters:
      data - The Blockstate's associated data value
      Returns:
      The Default state
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(I)Lbec;
      intermediary method_8635 Lnet/minecraft/class_197;method_8635(I)Lnet/minecraft/class_2232;
      named stateFromData Lnet/minecraft/block/Block;stateFromData(I)Lnet/minecraft/block/BlockState;
    • getData

      public int getData(BlockState state)
      Returns the data value for a blockstate Throws an IllegalArmumentException as this method does not work
      Overrides:
      getData in class Block
      Parameters:
      state - The Blockstate
      Returns:
      Zero
      Mappings:
      Namespace Name Mixin selector
      official c Latr;c(Lbec;)I
      intermediary method_8671 Lnet/minecraft/class_197;method_8671(Lnet/minecraft/class_2232;)I
      named getData Lnet/minecraft/block/Block;getData(Lnet/minecraft/block/BlockState;)I
    • appendProperties

      protected StateManager appendProperties()
      Returns a new state manager with a property array.
      Overrides:
      appendProperties in class Block
      Returns:
      New state manager
      Mappings:
      Namespace Name Mixin selector
      official e Latr;e()Lbed;
      intermediary method_8676 Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;
      named appendProperties Lnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
    • getFlowingFluidByMaterial

      public static FlowingFluidBlock getFlowingFluidByMaterial(Material material)
      Mappings:
      Namespace Name Mixin selector
      official a Laxl;a(Lbof;)Lavn;
      intermediary method_8816 Lnet/minecraft/class_153;method_8816(Lnet/minecraft/class_63;)Lnet/minecraft/class_154;
      named getFlowingFluidByMaterial Lnet/minecraft/block/AbstractFluidBlock;getFlowingFluidByMaterial(Lnet/minecraft/block/Material;)Lnet/minecraft/block/FlowingFluidBlock;
    • getFluidByMaterial

      public static FluidBlock getFluidByMaterial(Material material)
      Mappings:
      Namespace Name Mixin selector
      official b Laxl;b(Lbof;)Lbax;
      intermediary method_8817 Lnet/minecraft/class_153;method_8817(Lnet/minecraft/class_63;)Lnet/minecraft/class_155;
      named getFluidByMaterial Lnet/minecraft/block/AbstractFluidBlock;getFluidByMaterial(Lnet/minecraft/block/Material;)Lnet/minecraft/block/FluidBlock;