Class MangroveRootsBlock
- All Implemented Interfaces:
- FluidDrainable,- FluidFillable,- Waterloggable,- ItemConvertible,- ToggleableFeature
- Mappings:
- Namespace - Name - named - net/minecraft/block/MangroveRootsBlock- intermediary - net/minecraft/class_7116- official - djx
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.block.BlockBlock.NeighborGroupNested classes/interfaces inherited from class net.minecraft.block.AbstractBlockAbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<MangroveRootsBlock> static final BooleanPropertyFields inherited from class net.minecraft.block.Blockfield_31023, field_31024, field_31025, field_31035, FORCE_STATE, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_ALL_AND_REDRAW, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlockcollidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableKey, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, velocityMultiplierFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeatureFEATURE_ENABLED_REGISTRY_KEYS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidappendProperties(StateManager.Builder<Block, BlockState> builder) Appends block state properties to this block.com.mojang.serialization.MapCodec<MangroveRootsBlock> getCodec()protected FluidStategetFluidState(BlockState state) Returns the state's associated fluid state.protected BlockStategetStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected booleanisSideInvisible(BlockState state, BlockState stateFrom, Direction direction) Methods inherited from class net.minecraft.block.BlockafterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getRawIdFromState, getRegistryEntry, getShapesForStates, getSlipperiness, 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.AbstractBlockcalcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, canReplace, createCodec, createScreenHandlerFactory, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getHardness, getLootTableKey, getMaxHorizontalModelOffset, getOpacity, getOutlineShape, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSettings, getSidesShape, getSoundGroup, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasRandomTicks, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isTransparent, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onExploded, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, onUseWithItem, prepare, randomTick, rotate, scheduledTickMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeatureisEnabledMethods inherited from interface net.minecraft.block.WaterloggablecanFillWithFluid, getBucketFillSound, tryDrainFluid, tryFillWithFluid
- 
Field Details- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/block/MangroveRootsBlock;CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_46396- Lnet/minecraft/class_7116;field_46396:Lcom/mojang/serialization/MapCodec;- official - a- Ldjx;a:Lcom/mojang/serialization/MapCodec;
 
- 
WATERLOGGED- Mappings:
- Namespace - Name - Mixin selector - named - WATERLOGGED- Lnet/minecraft/block/MangroveRootsBlock;WATERLOGGED:Lnet/minecraft/state/property/BooleanProperty;- intermediary - field_37593- Lnet/minecraft/class_7116;field_37593:Lnet/minecraft/class_2746;- official - b- Ldjx;b:Ldsv;
 
 
- 
- 
Constructor Details- 
MangroveRootsBlock- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V- intermediary - <init>- Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V- official - <init>- Ldsd;<init>(Ldsd$d;)V
 
 
- 
- 
Method Details- 
getCodec- Overrides:
- getCodecin class- Block
- Mappings:
- Namespace - Name - Mixin selector - named - getCodec- Lnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;- intermediary - method_53969- Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;- official - a- Ldsd;a()Lcom/mojang/serialization/MapCodec;
 
- 
isSideInvisible- Overrides:
- isSideInvisiblein class- AbstractBlock
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - isSideInvisible- Lnet/minecraft/block/AbstractBlock;isSideInvisible(Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;)Z- intermediary - method_9522- Lnet/minecraft/class_4970;method_9522(Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;)Z- official - a- Ldsd;a(Ldse;Ldse;Lje;)Z
 
- 
getPlacementState- Overrides:
- getPlacementStatein class- Block
- Mappings:
- Namespace - Name - Mixin selector - named - getPlacementState- Lnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;- intermediary - method_9605- Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;- official - a- Ldfb;a(Lcyc;)Ldse;
 
- 
getStateForNeighborUpdateprotected BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.Returning Blocks.AIRbreaks the block. This is useful to implement supporting block requirement for blocks (if used along withAbstractBlock.canPlaceAt(net.minecraft.block.BlockState, net.minecraft.world.WorldView, net.minecraft.util.math.BlockPos)).Side effects like activating a redstone component (but not scheduling a tick) should be performed in AbstractBlock.neighborUpdate(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.Block, net.minecraft.util.math.BlockPos, boolean)instead. If the block supports waterlogging and currently has water, this method should be overridden to tick the fluid at the block's position.This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using . This is not called ifinvalid referenceWorld#isClientBlock.FORCE_STATEflag is set in thesetBlockStatecall.This method can be used for multiple purposes. Here are some examples: - FenceBlockuses it to update the fence's connection when a horizontally neighboring block's state is changed.
- PlantBlockuses it to break the plant if the state change causes it to lose its supporting block.
- DoorBlockuses it to copy the state of the other half of the door.
- SlabBlockuses it to schedule the fluid to tick if waterlogged.
- SoulSandBlockuses it to schedule the water block above to tick so that it becomes a bubble column.
- FallingBlockuses it to schedule the block to tick so that it can fall if needed.
 - Overrides:
- getStateForNeighborUpdatein class- AbstractBlock
- Parameters:
- state- the state of this block
- direction- the direction from this block to the neighbor
- neighborState- the state of the updated neighbor block
- world- the world
- pos- the position of this block
- neighborPos- the position of the neighbor block
- Returns:
- the state of the block after a neighboring block's state change
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - getStateForNeighborUpdate- Lnet/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;- intermediary - method_9559- Lnet/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;- official - a- Ldsd;a(Ldse;Lje;Ldse;Ldcb;Liz;Liz;)Ldse;
 
- 
getFluidStateReturns the state's associated fluid state.Waterloggable blocks must override this to return Fluids.WATER.getStill(false)when waterlogged.- Overrides:
- getFluidStatein class- AbstractBlock
- Returns:
- the state's associated fluid state
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - getFluidState- Lnet/minecraft/block/AbstractBlock;getFluidState(Lnet/minecraft/block/BlockState;)Lnet/minecraft/fluid/FluidState;- intermediary - method_9545- Lnet/minecraft/class_4970;method_9545(Lnet/minecraft/class_2680;)Lnet/minecraft/class_3610;- official - b_- Ldsd;b_(Ldse;)Lenx;
 
- 
appendPropertiesAppends block state properties to this block. To use this, override and callStateManager.Builder.add(net.minecraft.state.property.Property<?>[])inside the method. SeePropertiesfor the list of pre-defined properties.- Overrides:
- appendPropertiesin class- Block
- Mappings:
- Namespace - Name - Mixin selector - named - appendProperties- Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V- intermediary - method_9515- Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V- official - a- Ldfb;a(Ldsf$a;)V
 
 
-