Package net.minecraft.block
Class KelpBlock
- All Implemented Interfaces:
Fertilizable
,FluidFillable
,ItemConvertible
,ToggleableFeature
- Mappings:
Namespace Name official cww
intermediary net/minecraft/class_2393
named net/minecraft/block/KelpBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroup
Nested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
-
Field Summary
Fields inherited from class net.minecraft.block.AbstractPlantStemBlock
AGE, MAX_AGE
Fields inherited from class net.minecraft.block.AbstractPlantPartBlock
growthDirection, outlineShape, tickWater
Fields inherited from class net.minecraft.block.Block
field_31022, field_31023, field_31024, field_31025, field_31035, FORCE_STATE, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, STATE_IDS, stateManager
Fields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, velocityMultiplier
Fields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canAttachTo
(BlockState state) boolean
canFillWithFluid
(@Nullable PlayerEntity player, BlockView world, BlockPos pos, BlockState state, Fluid fluid) protected boolean
chooseStemState
(BlockState state) getFluidState
(BlockState state) Returns the state's associated fluid state.protected int
getGrowthLength
(Random random) @Nullable BlockState
protected Block
getPlant()
boolean
tryFillWithFluid
(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, withMaxAge
Methods inherited from class net.minecraft.block.AbstractPlantPartBlock
canPlaceAt, getOutlineShape, scheduledTick
Methods inherited from class net.minecraft.block.Block
afterBreak, 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, getSoundGroup, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasTopRim, isFaceFullSquare, isShapeFullCube, isTransparent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toString
Methods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOpacity, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSidesShape, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, rotate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
SHAPE
- Mappings:
Namespace Name Mixin selector official f
Lcww;f:Leig;
intermediary field_11195
Lnet/minecraft/class_2393;field_11195:Lnet/minecraft/class_265;
named SHAPE
Lnet/minecraft/block/KelpBlock;SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
GROWTH_CHANCE
private static final double GROWTH_CHANCE- See Also:
- Mappings:
Namespace Name Mixin selector official g
Lcww;g:D
intermediary field_31105
Lnet/minecraft/class_2393;field_31105:D
named GROWTH_CHANCE
Lnet/minecraft/block/KelpBlock;GROWTH_CHANCE:D
-
-
Constructor Details
-
KelpBlock
- Mappings:
Namespace Name Mixin selector official <init>
Ldfi;<init>(Ldfi$d;)V
intermediary <init>
Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V
named <init>
Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
-
-
Method Details
-
chooseStemState
- Specified by:
chooseStemState
in classAbstractPlantStemBlock
- Mappings:
Namespace Name Mixin selector official g
Lcwi;g(Ldfj;)Z
intermediary method_24949
Lnet/minecraft/class_4865;method_24949(Lnet/minecraft/class_2680;)Z
named chooseStemState
Lnet/minecraft/block/AbstractPlantStemBlock;chooseStemState(Lnet/minecraft/block/BlockState;)Z
-
getPlant
- Specified by:
getPlant
in classAbstractPlantPartBlock
- Mappings:
Namespace Name Mixin selector official a
Lcwg;a()Lcsv;
intermediary method_24946
Lnet/minecraft/class_4863;method_24946()Lnet/minecraft/class_2248;
named getPlant
Lnet/minecraft/block/AbstractPlantPartBlock;getPlant()Lnet/minecraft/block/Block;
-
canAttachTo
- Overrides:
canAttachTo
in classAbstractPlantPartBlock
- Mappings:
Namespace Name Mixin selector official h
Lcwg;h(Ldfj;)Z
intermediary method_24947
Lnet/minecraft/class_4863;method_24947(Lnet/minecraft/class_2680;)Z
named canAttachTo
Lnet/minecraft/block/AbstractPlantPartBlock;canAttachTo(Lnet/minecraft/block/BlockState;)Z
-
canFillWithFluid
public boolean canFillWithFluid(@Nullable @Nullable PlayerEntity player, BlockView world, BlockPos pos, BlockState state, Fluid fluid) - Specified by:
canFillWithFluid
in interfaceFluidFillable
- Mappings:
Namespace Name Mixin selector official a
Lcxj;a(Lcbu;Lcpb;Lgw;Ldfj;Leal;)Z
intermediary method_10310
Lnet/minecraft/class_2402;method_10310(Lnet/minecraft/class_1657;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3611;)Z
named canFillWithFluid
Lnet/minecraft/block/FluidFillable;canFillWithFluid(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/fluid/Fluid;)Z
-
tryFillWithFluid
public boolean tryFillWithFluid(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState) - Specified by:
tryFillWithFluid
in interfaceFluidFillable
- Mappings:
Namespace Name Mixin selector official a
Lcxj;a(Lcpw;Lgw;Ldfj;Leam;)Z
intermediary method_10311
Lnet/minecraft/class_2402;method_10311(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3610;)Z
named tryFillWithFluid
Lnet/minecraft/block/FluidFillable;tryFillWithFluid(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/fluid/FluidState;)Z
-
getGrowthLength
- Specified by:
getGrowthLength
in classAbstractPlantStemBlock
- Mappings:
Namespace Name Mixin selector official a
Lcwi;a(Lasc;)I
intermediary method_26376
Lnet/minecraft/class_4865;method_26376(Lnet/minecraft/class_5819;)I
named getGrowthLength
Lnet/minecraft/block/AbstractPlantStemBlock;getGrowthLength(Lnet/minecraft/util/math/random/Random;)I
-
getPlacementState
- Overrides:
getPlacementState
in classAbstractPlantPartBlock
- Mappings:
Namespace Name Mixin selector official a
Lcsv;a(Lcln;)Ldfj;
intermediary method_9605
Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;
named getPlacementState
Lnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
-
getFluidState
Returns the state's associated fluid state.Waterloggable blocks must override this to return
Fluids.WATER.getStill(false)
when waterlogged.- Overrides:
getFluidState
in classAbstractBlock
- Returns:
- the state's associated fluid state
- See Also:
- Mappings:
Namespace Name Mixin selector official c_
Ldfi;c_(Ldfj;)Leam;
intermediary method_9545
Lnet/minecraft/class_4970;method_9545(Lnet/minecraft/class_2680;)Lnet/minecraft/class_3610;
named getFluidState
Lnet/minecraft/block/AbstractBlock;getFluidState(Lnet/minecraft/block/BlockState;)Lnet/minecraft/fluid/FluidState;
-