Package net.minecraft.block
Class AbstractFluidBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.AbstractFluidBlock
- Direct Known Subclasses:
FlowingFluidBlock,FluidBlock
- Mappings:
Namespace Name official aruintermediary net/minecraft/class_153named net/minecraft/block/AbstractFluidBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.OffsetType -
Field Summary
FieldsFields inherited from class net.minecraft.block.Block
blastResistance, BLOCK_STATES, blockEntity, blockSoundGroup, collisionBox, EMPTY_BOX, fullBlock, hardness, lightLevel, material, materialColor, opacity, particleGravity, randomTicks, REGISTRY, slipperiness, stateManager, stats, transluscent, useNeighbourLight -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StateManagerReturns a new state manager with a property array.booleanblocksMovement(BlockView view, BlockPos pos) booleancanCollide(BlockState state, boolean bl) Returns whether entities can collide with the blockgetBlockRenderType(BlockState state) getCollisionBox(BlockState state, BlockView view, BlockPos pos) intgetData(BlockState state) Returns the data value for a blockstate Throws anIllegalArmumentExceptionas this method does not workintgetDropCount(Random rand) Returns the amount of items the block should drop on breaking without bonus rolls.getDropItem(BlockState blockState, Random random, int state) Returns the item that must be dropped when the block is brokenstatic FlowingFluidBlockgetFlowingFluidByMaterial(Material material) static FluidBlockgetFluidByMaterial(Material material) static floatgetHeightPercent(int height) Returns the appropriate RenderLayer for a block.intgetTickRate(World world) Returns the block's tick rate.booleanisFullBoundsCubeForCulling(BlockState blockState) booleanmethod_11562(BlockState state) intmethod_11564(BlockState state, BlockView view, BlockPos pos) static floatmethod_11618(BlockView blockView, BlockPos blockPos, Material material, BlockState blockState) protected voidmethod_11619(World world, BlockPos blockPos) protected intmethod_11620(BlockState blockState) protected intmethod_11621(BlockState blockState) static floatmethod_13709(BlockState blockState, BlockView blockView, BlockPos blockPos) static floatmethod_13710(BlockState blockState, BlockView blockView, BlockPos blockPos) method_14307(BlockView view, BlockState state, BlockPos pos, Direction direction) method_8640(BlockState blockState, BlockView blockView, BlockPos blockPos) booleanmethod_8654(BlockState state, BlockView view, BlockPos pos, Direction direction) private booleanmethod_8665(BlockView blockView, BlockPos blockPos, Direction direction) voidmethod_8669(BlockState blockState, World world, BlockPos blockPos, Random random) protected Vec3dmethod_8823(BlockView blockView, BlockPos blockPos, BlockState blockState) voidvoidonCreation(World world, BlockPos pos, BlockState state) Runs when the block is placed (by a player or enderman).onEntityCollision(World world, BlockPos pos, Entity entity, Vec3d velocity) booleanshouldDisableCullingSides(BlockView world, BlockPos pos) stateFromData(int data) Returns a blockstate of the current block from it's idbooleanupdate(World world, BlockPos pos, BlockState state) Methods inherited from class net.minecraft.block.Block
addStacksForDisplay, appendCollisionBoxes, appendCollisionBoxes, areBlocksEqual, canBePlacedAdjacent, canBePlacedAtPos, canMobSpawnInside, createStackFromBlock, disableStats, dropAsItem, dropExperience, get, getBlastResistance, getBlockFromItem, getBlockState, getBonusDrops, getByBlockState, getById, getComparatorOutput, getDefaultState, getHardness, getIdByBlock, getItemGroup, getLuminance, getMaterial, getMaterialColor, getMeta, getOffsetType, getOpacity, getPistonBehavior, getSoundGroup, getStateFromData, getStateFromRawId, getStateManager, getTranslatedName, getTranslationKey, hasBlockEntity, hasCollision, hasStats, isEqualTo, isFire, isFullBlock, isTransluscent, method_11557, method_11559, method_11563, method_11565, method_11566, method_11568, method_11575, method_11576, method_11577, method_13315, method_13702, method_13703, method_13704, method_14306, method_14308, method_14309, method_414, method_435, method_8638, method_8640, method_8651, method_8653, method_8664, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onBreakByPlayer, onBreaking, onDestroyedByExplosion, onEntityCollision, onLandedUpon, onPlaced, onSteppedOn, onUpdateTick, rainTick, randomDropAsItem, requiresSilkTouch, scheduledTick, setBlockSoundGroup, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, ticksRandomly, toString, use, useNeighbourLight, withMirror, withRotation
-
Field Details
-
LEVEL
- Mappings:
Namespace Name Mixin selector official bLaru;b:Laxi;intermediary field_9523Lnet/minecraft/class_153;field_9523:Lnet/minecraft/class_2246;named LEVELLnet/minecraft/block/AbstractFluidBlock;LEVEL:Lnet/minecraft/state/property/IntProperty;
-
-
Constructor Details
-
AbstractFluidBlock
- Parameters:
material- The block's material- Mappings:
Namespace Name Mixin selector official <init>Laow;<init>(Lbcz;)Vintermediary <init>Lnet/minecraft/class_197;<init>(Lnet/minecraft/class_63;)Vnamed <init>Lnet/minecraft/block/Block;<init>(Lnet/minecraft/block/Material;)V
-
-
Method Details
-
getCollisionBox
- Overrides:
getCollisionBoxin classBlock- Mappings:
Namespace Name Mixin selector official bLaow;b(Lawt;Lamy;Let;)Lbhb;intermediary method_11554Lnet/minecraft/class_197;method_11554(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_231;named getCollisionBoxLnet/minecraft/block/Block;getCollisionBox(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
-
method_8640
- Overrides:
method_8640in classBlock- Mappings:
Namespace Name Mixin selector official aLaow;a(Lawt;Lamy;Let;)Lbhb;intermediary method_8640Lnet/minecraft/class_197;method_8640(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_231;named method_8640Lnet/minecraft/block/Block;method_8640(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
-
blocksMovement
- Overrides:
blocksMovementin classBlock- Mappings:
Namespace Name Mixin selector official bLaow;b(Lamy;Let;)Zintermediary method_8663Lnet/minecraft/class_197;method_8663(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Znamed blocksMovementLnet/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 bLaru;b(I)Fintermediary method_330Lnet/minecraft/class_153;method_330(I)Fnamed getHeightPercentLnet/minecraft/block/AbstractFluidBlock;getHeightPercent(I)F
-
method_11620
- Mappings:
Namespace Name Mixin selector official xLaru;x(Lawt;)Iintermediary method_11620Lnet/minecraft/class_153;method_11620(Lnet/minecraft/class_2232;)Inamed method_11620Lnet/minecraft/block/AbstractFluidBlock;method_11620(Lnet/minecraft/block/BlockState;)I
-
method_11621
- Mappings:
Namespace Name Mixin selector official yLaru;y(Lawt;)Iintermediary method_11621Lnet/minecraft/class_153;method_11621(Lnet/minecraft/class_2232;)Inamed method_11621Lnet/minecraft/block/AbstractFluidBlock;method_11621(Lnet/minecraft/block/BlockState;)I
-
method_11562
- Overrides:
method_11562in classBlock- Mappings:
Namespace Name Mixin selector official cLaow;c(Lawt;)Zintermediary method_11562Lnet/minecraft/class_197;method_11562(Lnet/minecraft/class_2232;)Znamed method_11562Lnet/minecraft/block/Block;method_11562(Lnet/minecraft/block/BlockState;)Z
-
isFullBoundsCubeForCulling
- Overrides:
isFullBoundsCubeForCullingin classBlock- Mappings:
Namespace Name Mixin selector official bLaow;b(Lawt;)Zintermediary method_11560Lnet/minecraft/class_197;method_11560(Lnet/minecraft/class_2232;)Znamed isFullBoundsCubeForCullingLnet/minecraft/block/Block;isFullBoundsCubeForCulling(Lnet/minecraft/block/BlockState;)Z
-
canCollide
Returns whether entities can collide with the block- Overrides:
canCollidein classBlock- Parameters:
state- The block's BlockState- Returns:
- Whether the block has collision
- Mappings:
Namespace Name Mixin selector official aLaow;a(Lawt;Z)Zintermediary method_400Lnet/minecraft/class_197;method_400(Lnet/minecraft/class_2232;Z)Znamed canCollideLnet/minecraft/block/Block;canCollide(Lnet/minecraft/block/BlockState;Z)Z
-
method_8665
- Mappings:
Namespace Name Mixin selector official aLaru;a(Lamy;Let;Lfa;)Zintermediary method_8665Lnet/minecraft/class_153;method_8665(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Znamed method_8665Lnet/minecraft/block/AbstractFluidBlock;method_8665(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_8654in classBlock- Mappings:
Namespace Name Mixin selector official aLaow;a(Lawt;Lamy;Let;Lfa;)Zintermediary method_8654Lnet/minecraft/class_197;method_8654(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Znamed method_8654Lnet/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
- Mappings:
Namespace Name Mixin selector official cLaru;c(Lamy;Let;)Zintermediary method_8822Lnet/minecraft/class_153;method_8822(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Znamed shouldDisableCullingSidesLnet/minecraft/block/AbstractFluidBlock;shouldDisableCullingSides(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
-
getBlockRenderType
- Overrides:
getBlockRenderTypein classBlock- Mappings:
Namespace Name Mixin selector official aLaow;a(Lawt;)Latj;intermediary method_11552Lnet/minecraft/class_197;method_11552(Lnet/minecraft/class_2232;)Lnet/minecraft/class_2733;named getBlockRenderTypeLnet/minecraft/block/Block;getBlockRenderType(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockRenderType;
-
getDropItem
Returns the item that must be dropped when the block is broken- Overrides:
getDropItemin classBlock- Parameters:
blockState- The block's BlockStaterandom- Random objectstate- State- Returns:
- The Item that drops after the block breaks
- Mappings:
Namespace Name Mixin selector official aLaow;a(Lawt;Ljava/util/Random;I)Lain;intermediary method_398Lnet/minecraft/class_197;method_398(Lnet/minecraft/class_2232;Ljava/util/Random;I)Lnet/minecraft/class_1069;named getDropItemLnet/minecraft/block/Block;getDropItem(Lnet/minecraft/block/BlockState;Ljava/util/Random;I)Lnet/minecraft/item/Item;
-
getDropCount
Returns the amount of items the block should drop on breaking without bonus rolls.- Overrides:
getDropCountin classBlock- Parameters:
rand- Random object- Returns:
- Amount of items to be dropped
- Mappings:
Namespace Name Mixin selector official aLaow;a(Ljava/util/Random;)Iintermediary method_403Lnet/minecraft/class_197;method_403(Ljava/util/Random;)Inamed getDropCountLnet/minecraft/block/Block;getDropCount(Ljava/util/Random;)I
-
method_8823
- Mappings:
Namespace Name Mixin selector official aLaru;a(Lamy;Let;Lawt;)Lbhe;intermediary method_8823Lnet/minecraft/class_153;method_8823(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Lnet/minecraft/class_236;named method_8823Lnet/minecraft/block/AbstractFluidBlock;method_8823(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/math/Vec3d;
-
onEntityCollision
- Overrides:
onEntityCollisionin classBlock- Mappings:
Namespace Name Mixin selector official aLaow;a(Lamu;Let;Lvg;Lbhe;)Lbhe;intermediary method_8648Lnet/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 onEntityCollisionLnet/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
Returns the block's tick rate. Default is 10.- Overrides:
getTickRatein classBlock- Parameters:
world- The world that the block is placed in- Returns:
- Tick rate
- Mappings:
Namespace Name Mixin selector official aLaow;a(Lamu;)Iintermediary method_4789Lnet/minecraft/class_197;method_4789(Lnet/minecraft/class_1150;)Inamed getTickRateLnet/minecraft/block/Block;getTickRate(Lnet/minecraft/world/World;)I
-
method_11564
- Overrides:
method_11564in classBlock- Mappings:
Namespace Name Mixin selector official eLaow;e(Lawt;Lamy;Let;)Iintermediary method_11564Lnet/minecraft/class_197;method_11564(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Inamed method_11564Lnet/minecraft/block/Block;method_11564(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)I
-
getRenderLayerType
Returns the appropriate RenderLayer for a block. Only called on the client.- Overrides:
getRenderLayerTypein classBlock- Returns:
- The block's RenderLayer
- Mappings:
Namespace Name Mixin selector official fLaow;f()Lamm;intermediary method_8687Lnet/minecraft/class_197;method_8687()Lnet/minecraft/class_2165;named getRenderLayerTypeLnet/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_8669in classBlock- Mappings:
Namespace Name Mixin selector official aLaow;a(Lawt;Lamu;Let;Ljava/util/Random;)Vintermediary method_8669Lnet/minecraft/class_197;method_8669(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Ljava/util/Random;)Vnamed method_8669Lnet/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 aLaru;a(Lamy;Let;Lbcz;Lawt;)Fintermediary method_11618Lnet/minecraft/class_153;method_11618(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_63;Lnet/minecraft/class_2232;)Fnamed method_11618Lnet/minecraft/block/AbstractFluidBlock;method_11618(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Material;Lnet/minecraft/block/BlockState;)F
-
onCreation
Runs when the block is placed (by a player or enderman).- Overrides:
onCreationin classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockState- Mappings:
Namespace Name Mixin selector official cLaow;c(Lamu;Let;Lawt;)Vintermediary method_8668Lnet/minecraft/class_197;method_8668(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Vnamed onCreationLnet/minecraft/block/Block;onCreation(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
onBreak
- Overrides:
onBreakin classBlock- Mappings:
Namespace Name Mixin selector official aLaow;a(Lawt;Lamu;Let;Laow;Let;)Vintermediary method_8641Lnet/minecraft/class_197;method_8641(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_197;Lnet/minecraft/class_2552;)Vnamed onBreakLnet/minecraft/block/Block;onBreak(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;Lnet/minecraft/util/math/BlockPos;)V
-
update
- Mappings:
Namespace Name Mixin selector official eLaru;e(Lamu;Let;Lawt;)Zintermediary method_8819Lnet/minecraft/class_153;method_8819(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Znamed updateLnet/minecraft/block/AbstractFluidBlock;update(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
-
method_11619
- Mappings:
Namespace Name Mixin selector official bLaru;b(Lamu;Let;)Vintermediary method_11619Lnet/minecraft/class_153;method_11619(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Vnamed method_11619Lnet/minecraft/block/AbstractFluidBlock;method_11619(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
stateFromData
Returns a blockstate of the current block from it's id- Overrides:
stateFromDatain classBlock- Parameters:
data- The Blockstate's associated data value- Returns:
- The Default state
- Mappings:
Namespace Name Mixin selector official aLaow;a(I)Lawt;intermediary method_8635Lnet/minecraft/class_197;method_8635(I)Lnet/minecraft/class_2232;named stateFromDataLnet/minecraft/block/Block;stateFromData(I)Lnet/minecraft/block/BlockState;
-
getData
Returns the data value for a blockstate Throws anIllegalArmumentExceptionas this method does not work- Overrides:
getDatain classBlock- Parameters:
state- The Blockstate- Returns:
- Zero
- Mappings:
Namespace Name Mixin selector official eLaow;e(Lawt;)Iintermediary method_8671Lnet/minecraft/class_197;method_8671(Lnet/minecraft/class_2232;)Inamed getDataLnet/minecraft/block/Block;getData(Lnet/minecraft/block/BlockState;)I
-
appendProperties
Returns a new state manager with a property array.- Overrides:
appendPropertiesin classBlock- Returns:
- New state manager
- Mappings:
Namespace Name Mixin selector official bLaow;b()Lawu;intermediary method_8676Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;named appendPropertiesLnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
-
getFlowingFluidByMaterial
- Mappings:
Namespace Name Mixin selector official aLaru;a(Lbcz;)Laqe;intermediary method_8816Lnet/minecraft/class_153;method_8816(Lnet/minecraft/class_63;)Lnet/minecraft/class_154;named getFlowingFluidByMaterialLnet/minecraft/block/AbstractFluidBlock;getFlowingFluidByMaterial(Lnet/minecraft/block/Material;)Lnet/minecraft/block/FlowingFluidBlock;
-
getFluidByMaterial
- Mappings:
Namespace Name Mixin selector official bLaru;b(Lbcz;)Lauf;intermediary method_8817Lnet/minecraft/class_153;method_8817(Lnet/minecraft/class_63;)Lnet/minecraft/class_155;named getFluidByMaterialLnet/minecraft/block/AbstractFluidBlock;getFluidByMaterial(Lnet/minecraft/block/Material;)Lnet/minecraft/block/FluidBlock;
-
method_13709
- Mappings:
Namespace Name Mixin selector official gLaru;g(Lawt;Lamy;Let;)Fintermediary method_13709Lnet/minecraft/class_153;method_13709(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Fnamed method_13709Lnet/minecraft/block/AbstractFluidBlock;method_13709(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)F
-
method_13710
- Mappings:
Namespace Name Mixin selector official hLaru;h(Lawt;Lamy;Let;)Fintermediary method_13710Lnet/minecraft/class_153;method_13710(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Fnamed method_13710Lnet/minecraft/block/AbstractFluidBlock;method_13710(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)F
-
method_14307
public BlockRenderLayer method_14307(BlockView view, BlockState state, BlockPos pos, Direction direction) - Overrides:
method_14307in classBlock- Mappings:
Namespace Name Mixin selector official aLaow;a(Lamy;Lawt;Let;Lfa;)Lawr;intermediary method_14307Lnet/minecraft/class_197;method_14307(Lnet/minecraft/class_1158;Lnet/minecraft/class_2232;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Lnet/minecraft/class_3225;named method_14307Lnet/minecraft/block/Block;method_14307(Lnet/minecraft/world/BlockView;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/block/BlockRenderLayer;
-