Package net.minecraft.block
Class KelpBlock
- All Implemented Interfaces:
Fertilizable,FluidFillable,ItemConvertible,ToggleableFeature
- Mappings:
Namespace Name named net/minecraft/block/KelpBlockintermediary net/minecraft/class_2393official dqi
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>Nested classes/interfaces inherited from interface net.minecraft.block.Fertilizable
Fertilizable.FertilizableType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<KelpBlock> private static final doubleprivate static final VoxelShapeFields inherited from class net.minecraft.block.AbstractPlantStemBlock
AGE, MAX_AGEFields inherited from class net.minecraft.block.AbstractPlantPartBlock
growthDirection, outlineShape, tickWaterFields inherited from class net.minecraft.block.Block
field_31023, field_31024, field_31025, field_55740, FORCE_STATE, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_ALL_AND_REDRAW, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_CALLBACKS, SKIP_DROPS, SKIP_REDRAW_AND_CALLBACKS, SKIP_REDSTONE_WIRE_STATE_REPLACEMENT, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableKey, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, translationKey, velocityMultiplierFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanAttachTo(BlockState state) booleancanFillWithFluid(@Nullable LivingEntity filler, BlockView world, BlockPos pos, BlockState state, Fluid fluid) protected booleanchooseStemState(BlockState state) com.mojang.serialization.MapCodec<KelpBlock> getCodec()protected FluidStategetFluidState(BlockState state) Returns the state's associated fluid state.protected intgetGrowthLength(Random random) protected BlockgetPlant()booleantryFillWithFluid(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState) Methods inherited from class net.minecraft.block.AbstractPlantStemBlock
age, appendProperties, canGrow, copyState, getRandomGrowthState, getStateForNeighborUpdate, getStem, grow, hasMaxAge, hasRandomTicks, isFertilizable, randomTick, withMaxAgeMethods inherited from class net.minecraft.block.AbstractPlantPartBlock
canPlaceAt, getOutlineShape, scheduledTickMethods inherited from class net.minecraft.block.Block
afterBreak, asBlock, asItem, canMobSpawnInside, cannotConnect, createColumnShape, createColumnShape, createCubeShape, createCuboidShape, createCuboidShape, createCuboidZShape, createCuboidZShape, createCuboidZShape, createShapeArray, createShapeFunction, createShapeFunction, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getRawIdFromState, getRegistryEntry, getSlipperiness, getStateFromRawId, getStateManager, getStateWithProperties, 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, canPathfindThrough, canReplace, createCodec, createScreenHandlerFactory, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getHardness, getInsideCollisionShape, getLootTableKey, getMaxHorizontalModelOffset, getOpacity, getPickStack, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSettings, getSidesShape, getSoundGroup, getStrongRedstonePower, getTranslationKey, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isShapeFullCube, isSideInvisible, isTransparent, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onExploded, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, onUseWithItem, prepare, rotateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.block.Fertilizable
getFertilizableType, getFertilizeParticlePosMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/block/KelpBlock;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_46378Lnet/minecraft/class_2393;field_46378:Lcom/mojang/serialization/MapCodec;official cLdqi;c:Lcom/mojang/serialization/MapCodec;
-
GROWTH_CHANCE
private static final double GROWTH_CHANCE- See Also:
- Mappings:
Namespace Name Mixin selector named GROWTH_CHANCELnet/minecraft/block/KelpBlock;GROWTH_CHANCE:Dintermediary field_31105Lnet/minecraft/class_2393;field_31105:Dofficial gLdqi;g:D
-
SHAPE
- Mappings:
Namespace Name Mixin selector named SHAPELnet/minecraft/block/KelpBlock;SHAPE:Lnet/minecraft/util/shape/VoxelShape;intermediary field_11195Lnet/minecraft/class_2393;field_11195:Lnet/minecraft/class_265;official hLdqi;h:Lffc;
-
-
Constructor Details
-
KelpBlock
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)Vintermediary <init>Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)Vofficial <init>Ldzy;<init>(Ldzy$d;)V
-
-
Method Details
-
getCodec
- Specified by:
getCodecin classAbstractPlantStemBlock- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_53969Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;official aLdzy;a()Lcom/mojang/serialization/MapCodec;
-
chooseStemState
- Specified by:
chooseStemStatein classAbstractPlantStemBlock- Mappings:
Namespace Name Mixin selector named chooseStemStateLnet/minecraft/block/AbstractPlantStemBlock;chooseStemState(Lnet/minecraft/block/BlockState;)Zintermediary method_24949Lnet/minecraft/class_4865;method_24949(Lnet/minecraft/class_2680;)Zofficial hLdps;h(Ldzz;)Z
-
getPlant
- Specified by:
getPlantin classAbstractPlantPartBlock- Mappings:
Namespace Name Mixin selector named getPlantLnet/minecraft/block/AbstractPlantPartBlock;getPlant()Lnet/minecraft/block/Block;intermediary method_24946Lnet/minecraft/class_4863;method_24946()Lnet/minecraft/class_2248;official bLdpq;b()Ldma;
-
canAttachTo
- Overrides:
canAttachToin classAbstractPlantPartBlock- Mappings:
Namespace Name Mixin selector named canAttachToLnet/minecraft/block/AbstractPlantPartBlock;canAttachTo(Lnet/minecraft/block/BlockState;)Zintermediary method_24947Lnet/minecraft/class_4863;method_24947(Lnet/minecraft/class_2680;)Zofficial oLdpq;o(Ldzz;)Z
-
canFillWithFluid
public boolean canFillWithFluid(@Nullable @Nullable LivingEntity filler, BlockView world, BlockPos pos, BlockState state, Fluid fluid) - Specified by:
canFillWithFluidin interfaceFluidFillable- Mappings:
Namespace Name Mixin selector named canFillWithFluidLnet/minecraft/block/FluidFillable;canFillWithFluid(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/fluid/Fluid;)Zintermediary method_10310Lnet/minecraft/class_2402;method_10310(Lnet/minecraft/class_1309;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3611;)Zofficial aLdqw;a(Lbxc;Ldib;Liu;Ldzz;Lewf;)Z
-
tryFillWithFluid
public boolean tryFillWithFluid(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState) - Specified by:
tryFillWithFluidin interfaceFluidFillable- Mappings:
Namespace Name Mixin selector named tryFillWithFluidLnet/minecraft/block/FluidFillable;tryFillWithFluid(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/fluid/FluidState;)Zintermediary method_10311Lnet/minecraft/class_2402;method_10311(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3610;)Zofficial aLdqw;a(Ldiw;Liu;Ldzz;Lewg;)Z
-
getGrowthLength
- Specified by:
getGrowthLengthin classAbstractPlantStemBlock- Mappings:
Namespace Name Mixin selector named getGrowthLengthLnet/minecraft/block/AbstractPlantStemBlock;getGrowthLength(Lnet/minecraft/util/math/random/Random;)Iintermediary method_26376Lnet/minecraft/class_4865;method_26376(Lnet/minecraft/class_5819;)Iofficial aLdps;a(Lazv;)I
-
getPlacementState
- Overrides:
getPlacementStatein classAbstractPlantPartBlock- Mappings:
Namespace Name Mixin selector named getPlacementStateLnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;intermediary method_9605Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;official aLdma;a(Ldcr;)Ldzz;
-
getFluidState
Returns the state's associated fluid state.Waterloggable blocks must override this to return
Fluids.WATER.getStill(false)when waterlogged.- Overrides:
getFluidStatein classAbstractBlock- Returns:
- the state's associated fluid state
- See Also:
- Mappings:
Namespace Name Mixin selector named getFluidStateLnet/minecraft/block/AbstractBlock;getFluidState(Lnet/minecraft/block/BlockState;)Lnet/minecraft/fluid/FluidState;intermediary method_9545Lnet/minecraft/class_4970;method_9545(Lnet/minecraft/class_2680;)Lnet/minecraft/class_3610;official b_Ldzy;b_(Ldzz;)Lewg;
-