Package net.minecraft.block
Class DyedCarpetBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.CarpetBlock
net.minecraft.block.DyedCarpetBlock
- All Implemented Interfaces:
ItemConvertible,ToggleableFeature
A carpet that has an associated carpet color for llamas.
- Mappings:
Namespace Name official cyyintermediary net/minecraft/class_5815named net/minecraft/block/DyedCarpetBlock
-
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.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A> -
Field Summary
FieldsFields inherited from class net.minecraft.block.CarpetBlock
SHAPEFields 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, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, velocityMultiplierFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDyedCarpetBlock(DyeColor dyeColor, AbstractBlock.Settings settings) -
Method Summary
Methods inherited from class net.minecraft.block.CarpetBlock
canPlaceAt, getOutlineShape, getStateForNeighborUpdateMethods inherited from class net.minecraft.block.Block
afterBreak, appendProperties, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getPlacementState, getRawIdFromState, getRegistryEntry, getShapesForStates, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTransparent, 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, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, 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, randomTick, rotate, scheduledTickMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
dyeColor
- Mappings:
Namespace Name Mixin selector official bLcyy;b:Lcel;intermediary field_28715Lnet/minecraft/class_5815;field_28715:Lnet/minecraft/class_1767;named dyeColorLnet/minecraft/block/DyedCarpetBlock;dyeColor:Lnet/minecraft/util/DyeColor;
-
-
Constructor Details
-
DyedCarpetBlock
- Parameters:
dyeColor- the color of this carpet when worn by a llama- Mappings:
Namespace Name Mixin selector official <init>Lcyy;<init>(Lcel;Ldbx$d;)Vintermediary <init>Lnet/minecraft/class_5815;<init>(Lnet/minecraft/class_1767;Lnet/minecraft/class_4970$class_2251;)Vnamed <init>Lnet/minecraft/block/DyedCarpetBlock;<init>(Lnet/minecraft/util/DyeColor;Lnet/minecraft/block/AbstractBlock$Settings;)V
-
-
Method Details
-
getDyeColor
Returns the color of this carpet when worn by a llama.If
null, the llama will not appear to be wearing the carpet. However, the carpet will remain wearable by the llama.- Returns:
- the color of this carpet when worn by a llama
- Mappings:
Namespace Name Mixin selector official aLcyy;a()Lcel;intermediary method_33635Lnet/minecraft/class_5815;method_33635()Lnet/minecraft/class_1767;named getDyeColorLnet/minecraft/block/DyedCarpetBlock;getDyeColor()Lnet/minecraft/util/DyeColor;
-