Package net.minecraft.block
Class FluidBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.FluidBlock
- All Implemented Interfaces:
FluidDrainable,ItemConvertible
- Mappings:
Namespace Name official cfzintermediary net/minecraft/class_2404named net/minecraft/block/FluidBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroupNested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final VoxelShapestatic final ImmutableList<Direction>protected final FlowableFluidstatic final IntPropertyprivate final List<FluidState>Fields inherited from class net.minecraft.block.Block
field_31022, field_31023, field_31024, field_31025, field_31035, FORCE_STATE, LOGGER, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, SKIP_LIGHTING_UPDATES, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFluidBlock(FlowableFluid fluid, AbstractBlock.Settings settings) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendProperties(StateManager.Builder<Block, BlockState> builder) booleancanPathfindThrough(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns the sound played when filling a bucket with the fluid contained in this block.getCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) getDroppedStacks(BlockState state, LootContext.Builder builder) getFluidState(BlockState state) getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) getRenderType(BlockState state) getStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.booleanhasRandomTicks(BlockState state) booleanisSideInvisible(BlockState state, BlockState stateFrom, Direction direction) booleanisTranslucent(BlockState state, BlockView world, BlockPos pos) voidneighborUpdate(BlockState state, World world, BlockPos pos, Block block, BlockPos fromPos, boolean notify) voidonBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) private voidplayExtinguishSound(WorldAccess world, BlockPos pos) voidrandomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) private booleanreceiveNeighborFluids(World world, BlockPos pos, BlockState state) tryDrainFluid(WorldAccess world, BlockPos pos, BlockState state) Methods inherited from class net.minecraft.block.Block
afterBreak, appendStacks, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStack, dropStacks, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getPlacementState, getRawIdFromState, getShapesForStates, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasTopRim, isFaceFullSquare, isShapeFullCube, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getHardness, getLootTableId, getMaxModelOffset, getOffsetType, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getSidesShape, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isShapeFullCube, mirror, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, rotate, scheduledTick
-
Field Details
-
LEVEL
- Mappings:
Namespace Name Mixin selector official aLcfz;a:Lcnz;intermediary field_11278Lnet/minecraft/class_2404;field_11278:Lnet/minecraft/class_2758;named LEVELLnet/minecraft/block/FluidBlock;LEVEL:Lnet/minecraft/state/property/IntProperty;
-
COLLISION_SHAPE
- Mappings:
Namespace Name Mixin selector official cLcfz;c:Ldor;intermediary field_24412Lnet/minecraft/class_2404;field_24412:Lnet/minecraft/class_265;named COLLISION_SHAPELnet/minecraft/block/FluidBlock;COLLISION_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
field_34006
- Mappings:
Namespace Name Mixin selector official dLcfz;d:Lcom/google/common/collect/ImmutableList;intermediary field_34006Lnet/minecraft/class_2404;field_34006:Lcom/google/common/collect/ImmutableList;named field_34006Lnet/minecraft/block/FluidBlock;field_34006:Lcom/google/common/collect/ImmutableList;
-
fluid
- Mappings:
Namespace Name Mixin selector official bLcfz;b:Ldhf;intermediary field_11279Lnet/minecraft/class_2404;field_11279:Lnet/minecraft/class_3609;named fluidLnet/minecraft/block/FluidBlock;fluid:Lnet/minecraft/fluid/FlowableFluid;
-
statesByLevel
- Mappings:
Namespace Name Mixin selector official eLcfz;e:Ljava/util/List;intermediary field_11276Lnet/minecraft/class_2404;field_11276:Ljava/util/List;named statesByLevelLnet/minecraft/block/FluidBlock;statesByLevel:Ljava/util/List;
-
-
Constructor Details
-
FluidBlock
- Mappings:
Namespace Name Mixin selector official <init>Lcfz;<init>(Ldhf;Lcmy$c;)Vintermediary <init>Lnet/minecraft/class_2404;<init>(Lnet/minecraft/class_3609;Lnet/minecraft/class_4970$class_2251;)Vnamed <init>Lnet/minecraft/block/FluidBlock;<init>(Lnet/minecraft/fluid/FlowableFluid;Lnet/minecraft/block/AbstractBlock$Settings;)V
-
-
Method Details
-
getCollisionShape
public VoxelShape getCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
getCollisionShapein classAbstractBlock- Mappings:
Namespace Name Mixin selector official cLcmy;c(Lcmz;Lbyh;Lgh;Ldod;)Ldor;intermediary method_9549Lnet/minecraft/class_4970;method_9549(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;named getCollisionShapeLnet/minecraft/block/AbstractBlock;getCollisionShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;
-
hasRandomTicks
- Overrides:
hasRandomTicksin classBlock- Mappings:
Namespace Name Mixin selector official e_Lcbv;e_(Lcmz;)Zintermediary method_9542Lnet/minecraft/class_2248;method_9542(Lnet/minecraft/class_2680;)Znamed hasRandomTicksLnet/minecraft/block/Block;hasRandomTicks(Lnet/minecraft/block/BlockState;)Z
-
randomTick
- Overrides:
randomTickin classAbstractBlock- Mappings:
Namespace Name Mixin selector official bLcmy;b(Lcmz;Lach;Lgh;Ljava/util/Random;)Vintermediary method_9514Lnet/minecraft/class_4970;method_9514(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/Random;)Vnamed randomTickLnet/minecraft/block/AbstractBlock;randomTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
-
isTranslucent
- Overrides:
isTranslucentin classBlock- Mappings:
Namespace Name Mixin selector official cLcbv;c(Lcmz;Lbyh;Lgh;)Zintermediary method_9579Lnet/minecraft/class_2248;method_9579(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Znamed isTranslucentLnet/minecraft/block/Block;isTranslucent(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
-
getFluidState
- Overrides:
getFluidStatein classAbstractBlock- Mappings:
Namespace Name Mixin selector official c_Lcmy;c_(Lcmz;)Ldhh;intermediary method_9545Lnet/minecraft/class_4970;method_9545(Lnet/minecraft/class_2680;)Lnet/minecraft/class_3610;named getFluidStateLnet/minecraft/block/AbstractBlock;getFluidState(Lnet/minecraft/block/BlockState;)Lnet/minecraft/fluid/FluidState;
-
isSideInvisible
- Overrides:
isSideInvisiblein classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLcmy;a(Lcmz;Lcmz;Lgm;)Zintermediary method_9522Lnet/minecraft/class_4970;method_9522(Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;)Znamed isSideInvisibleLnet/minecraft/block/AbstractBlock;isSideInvisible(Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;)Z
-
getRenderType
- Overrides:
getRenderTypein classAbstractBlock- Mappings:
Namespace Name Mixin selector official b_Lcmy;b_(Lcmz;)Lchk;intermediary method_9604Lnet/minecraft/class_4970;method_9604(Lnet/minecraft/class_2680;)Lnet/minecraft/class_2464;named getRenderTypeLnet/minecraft/block/AbstractBlock;getRenderType(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockRenderType;
-
getDroppedStacks
- Overrides:
getDroppedStacksin classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLcmy;a(Lcmz;Ldjm$a;)Ljava/util/List;intermediary method_9560Lnet/minecraft/class_4970;method_9560(Lnet/minecraft/class_2680;Lnet/minecraft/class_47$class_48;)Ljava/util/List;named getDroppedStacksLnet/minecraft/block/AbstractBlock;getDroppedStacks(Lnet/minecraft/block/BlockState;Lnet/minecraft/loot/context/LootContext$Builder;)Ljava/util/List;
-
getOutlineShape
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
getOutlineShapein classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLcmy;a(Lcmz;Lbyh;Lgh;Ldod;)Ldor;intermediary method_9530Lnet/minecraft/class_4970;method_9530(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;named getOutlineShapeLnet/minecraft/block/AbstractBlock;getOutlineShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;
-
onBlockAdded
public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) - Overrides:
onBlockAddedin classAbstractBlock- Mappings:
Namespace Name Mixin selector official bLcmy;b(Lcmz;Lbzb;Lgh;Lcmz;Z)Vintermediary method_9615Lnet/minecraft/class_4970;method_9615(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)Vnamed onBlockAddedLnet/minecraft/block/AbstractBlock;onBlockAdded(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V
-
getStateForNeighborUpdate
public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Gets the possibly updated block state of this block when a neighboring block is updated.- Overrides:
getStateForNeighborUpdatein classAbstractBlock- Parameters:
state- the state of this blockdirection- the direction from this block to the neighborneighborState- the state of the updated neighbor blockworld- the worldpos- the position of this blockneighborPos- the position of the neighbor block- Returns:
- the new state of this block
- Mappings:
Namespace Name Mixin selector official aLcmy;a(Lcmz;Lgm;Lcmz;Lbzc;Lgh;Lgh;)Lcmz;intermediary method_9559Lnet/minecraft/class_4970;method_9559(Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;named getStateForNeighborUpdateLnet/minecraft/block/AbstractBlock;getStateForNeighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
neighborUpdate
public void neighborUpdate(BlockState state, World world, BlockPos pos, Block block, BlockPos fromPos, boolean notify) - Overrides:
neighborUpdatein classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLcmy;a(Lcmz;Lbzb;Lgh;Lcbv;Lgh;Z)Vintermediary method_9612Lnet/minecraft/class_4970;method_9612(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2248;Lnet/minecraft/class_2338;Z)Vnamed neighborUpdateLnet/minecraft/block/AbstractBlock;neighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;Lnet/minecraft/util/math/BlockPos;Z)V
-
receiveNeighborFluids
- Mappings:
Namespace Name Mixin selector official aLcfz;a(Lbzb;Lgh;Lcmz;)Zintermediary method_10316Lnet/minecraft/class_2404;method_10316(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Znamed receiveNeighborFluidsLnet/minecraft/block/FluidBlock;receiveNeighborFluids(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
-
playExtinguishSound
- Mappings:
Namespace Name Mixin selector official aLcfz;a(Lbzc;Lgh;)Vintermediary method_10318Lnet/minecraft/class_2404;method_10318(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)Vnamed playExtinguishSoundLnet/minecraft/block/FluidBlock;playExtinguishSound(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;)V
-
appendProperties
- Overrides:
appendPropertiesin classBlock- Mappings:
Namespace Name Mixin selector official aLcbv;a(Lcna$a;)Vintermediary method_9515Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)Vnamed appendPropertiesLnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
-
tryDrainFluid
- Specified by:
tryDrainFluidin interfaceFluidDrainable- Mappings:
Namespace Name Mixin selector official cLcca;c(Lbzc;Lgh;Lcmz;)Lbtc;intermediary method_9700Lnet/minecraft/class_2263;method_9700(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_1799;named tryDrainFluidLnet/minecraft/block/FluidDrainable;tryDrainFluid(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/item/ItemStack;
-
getBucketFillSound
Returns the sound played when filling a bucket with the fluid contained in this block.- Specified by:
getBucketFillSoundin interfaceFluidDrainable- Returns:
- the sound played when filling a bucket with the fluid contained in this block
- See Also:
- Mappings:
Namespace Name Mixin selector official W_Lcca;W_()Ljava/util/Optional;intermediary method_32351Lnet/minecraft/class_2263;method_32351()Ljava/util/Optional;named getBucketFillSoundLnet/minecraft/block/FluidDrainable;getBucketFillSound()Ljava/util/Optional;
-