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 amo
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 Lamo;b:Larr;
      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> Lajt;<init>(Laxe;)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

    • getCollisionBox

      public Box getCollisionBox(BlockState state, BlockView view, BlockPos pos)
      Overrides:
      getCollisionBox in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(Lard;Lahx;Lcl;)Lbbf;
      intermediary method_11554 Lnet/minecraft/class_197;method_11554(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_231;
      named getCollisionBox Lnet/minecraft/block/Block;getCollisionBox(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
    • getCollisionBox

      @Nullable public Box getCollisionBox(BlockState state, World world, BlockPos pos)
      Overrides:
      getCollisionBox in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(Lard;Laht;Lcl;)Lbbf;
      intermediary method_8640 Lnet/minecraft/class_197;method_8640(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Lnet/minecraft/class_231;
      named getCollisionBox Lnet/minecraft/block/Block;getCollisionBox(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
    • blocksMovement

      public boolean blocksMovement(BlockView view, BlockPos pos)
      Overrides:
      blocksMovement in class Block
      Mappings:
      Namespace Name Mixin selector
      official b Lajt;b(Lahx;Lcl;)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
    • getHeightPercent

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

      protected int method_11620(BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official i Lamo;i(Lard;)I
      intermediary method_11620 Lnet/minecraft/class_153;method_11620(Lnet/minecraft/class_2232;)I
      named method_11620 Lnet/minecraft/block/AbstractFluidBlock;method_11620(Lnet/minecraft/block/BlockState;)I
    • method_11621

      protected int method_11621(BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official x Lamo;x(Lard;)I
      intermediary method_11621 Lnet/minecraft/class_153;method_11621(Lnet/minecraft/class_2232;)I
      named method_11621 Lnet/minecraft/block/AbstractFluidBlock;method_11621(Lnet/minecraft/block/BlockState;)I
    • method_11562

      public boolean method_11562(BlockState state)
      Overrides:
      method_11562 in class Block
      Mappings:
      Namespace Name Mixin selector
      official c Lajt;c(Lard;)Z
      intermediary method_11562 Lnet/minecraft/class_197;method_11562(Lnet/minecraft/class_2232;)Z
      named method_11562 Lnet/minecraft/block/Block;method_11562(Lnet/minecraft/block/BlockState;)Z
    • isFullBoundsCubeForCulling

      public boolean isFullBoundsCubeForCulling(BlockState blockState)
      Overrides:
      isFullBoundsCubeForCulling in class Block
      Mappings:
      Namespace Name Mixin selector
      official b Lajt;b(Lard;)Z
      intermediary method_11560 Lnet/minecraft/class_197;method_11560(Lnet/minecraft/class_2232;)Z
      named isFullBoundsCubeForCulling Lnet/minecraft/block/Block;isFullBoundsCubeForCulling(Lnet/minecraft/block/BlockState;)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 Lajt;a(Lard;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 a Lajt;a(Lahx;Lcl;Lcs;)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
    • method_8654

      @Environment(CLIENT) public boolean method_8654(BlockState state, BlockView view, BlockPos pos, Direction direction)
      Overrides:
      method_8654 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(Lard;Lahx;Lcl;Lcs;)Z
      intermediary method_8654 Lnet/minecraft/class_197;method_8654(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Z
      named method_8654 Lnet/minecraft/block/Block;method_8654(Lnet/minecraft/block/BlockState;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 c Lamo;c(Lahx;Lcl;)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
    • getBlockRenderType

      public BlockRenderType getBlockRenderType(BlockState state)
      Overrides:
      getBlockRenderType in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(Lard;)Laob;
      intermediary method_11552 Lnet/minecraft/class_197;method_11552(Lnet/minecraft/class_2232;)Lnet/minecraft/class_2733;
      named getBlockRenderType Lnet/minecraft/block/Block;getBlockRenderType(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockRenderType;
    • getDropItem

      @Nullable 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 Lajt;a(Lard;Ljava/util/Random;I)Lado;
      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 Lajt;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
    • method_8823

      protected Vec3d method_8823(BlockView blockView, BlockPos blockPos, BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official a Lamo;a(Lahx;Lcl;Lard;)Lbbh;
      intermediary method_8823 Lnet/minecraft/class_153;method_8823(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Lnet/minecraft/class_236;
      named method_8823 Lnet/minecraft/block/AbstractFluidBlock;method_8823(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)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 Lajt;a(Laht;Lcl;Lrr;Lbbh;)Lbbh;
      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 Lajt;a(Laht;)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
    • method_11564

      @Environment(CLIENT) public int method_11564(BlockState state, BlockView view, BlockPos pos)
      Overrides:
      method_11564 in class Block
      Mappings:
      Namespace Name Mixin selector
      official c Lajt;c(Lard;Lahx;Lcl;)I
      intermediary method_11564 Lnet/minecraft/class_197;method_11564(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)I
      named method_11564 Lnet/minecraft/block/Block;method_11564(Lnet/minecraft/block/BlockState;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 f Lajt;f()Lahm;
      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;
    • method_8669

      @Environment(CLIENT) public void method_8669(BlockState blockState, World world, BlockPos blockPos, Random random)
      Overrides:
      method_8669 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(Lard;Laht;Lcl;Ljava/util/Random;)V
      intermediary method_8669 Lnet/minecraft/class_197;method_8669(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Ljava/util/Random;)V
      named method_8669 Lnet/minecraft/block/Block;method_8669(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
    • method_11618

      @Environment(CLIENT) public static float method_11618(BlockView blockView, BlockPos blockPos, Material material, BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official a Lamo;a(Lahx;Lcl;Laxe;Lard;)F
      intermediary method_11618 Lnet/minecraft/class_153;method_11618(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_63;Lnet/minecraft/class_2232;)F
      named method_11618 Lnet/minecraft/block/AbstractFluidBlock;method_11618(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Material;Lnet/minecraft/block/BlockState;)F
    • 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 Lajt;c(Laht;Lcl;Lard;)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
    • method_8641

      public void method_8641(BlockState blockState, World world, BlockPos blockPos, Block block)
      Overrides:
      method_8641 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(Lard;Laht;Lcl;Lajt;)V
      intermediary method_8641 Lnet/minecraft/class_197;method_8641(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_197;)V
      named method_8641 Lnet/minecraft/block/Block;method_8641(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;)V
    • update

      public boolean update(World world, BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official e Lamo;e(Laht;Lcl;Lard;)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
    • method_11619

      protected void method_11619(World world, BlockPos blockPos)
      Mappings:
      Namespace Name Mixin selector
      official b Lamo;b(Laht;Lcl;)V
      intermediary method_11619 Lnet/minecraft/class_153;method_11619(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)V
      named method_11619 Lnet/minecraft/block/AbstractFluidBlock;method_11619(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 Lajt;a(I)Lard;
      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 e Lajt;e(Lard;)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 b Lajt;b()Lare;
      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 Lamo;a(Laxe;)Lakz;
      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 Lamo;b(Laxe;)Laov;
      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;