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:
Equipment,ItemConvertible,ToggleableFeature
A carpet that has an associated carpet color for llamas.
- Mappings:
Namespace Name named net/minecraft/block/DyedCarpetBlockintermediary net/minecraft/class_5815official dpu
-
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
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<DyedCarpetBlock> private final DyeColorFields inherited from class net.minecraft.block.CarpetBlock
SHAPEFields inherited from class net.minecraft.block.Block
field_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.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableKey, 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
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<DyedCarpetBlock> getCodec()Returns the color of this carpet when worn by a llama.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, 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, canPathfindThrough, canReplace, createCodec, createScreenHandlerFactory, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableKey, getMaxHorizontalModelOffset, getOpacity, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSettings, getSidesShape, getSoundGroup, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasRandomTicks, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, isTransparent, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onExploded, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, onUseWithItem, 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.item.Equipment
equipAndSwapMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/block/DyedCarpetBlock;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_46506Lnet/minecraft/class_5815;field_46506:Lcom/mojang/serialization/MapCodec;official cLdpu;c:Lcom/mojang/serialization/MapCodec;
-
dyeColor
- Mappings:
Namespace Name Mixin selector named dyeColorLnet/minecraft/block/DyedCarpetBlock;dyeColor:Lnet/minecraft/util/DyeColor;intermediary field_28715Lnet/minecraft/class_5815;field_28715:Lnet/minecraft/class_1767;official dLdpu;d:Lcti;
-
-
Constructor Details
-
DyedCarpetBlock
- Parameters:
dyeColor- the color of this carpet when worn by a llama- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/block/DyedCarpetBlock;<init>(Lnet/minecraft/util/DyeColor;Lnet/minecraft/block/AbstractBlock$Settings;)Vintermediary <init>Lnet/minecraft/class_5815;<init>(Lnet/minecraft/class_1767;Lnet/minecraft/class_4970$class_2251;)Vofficial <init>Ldpu;<init>(Lcti;Ldtb$d;)V
-
-
Method Details
-
getCodec
- Overrides:
getCodecin classCarpetBlock- 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 aLdtb;a()Lcom/mojang/serialization/MapCodec;
-
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 named getDyeColorLnet/minecraft/block/DyedCarpetBlock;getDyeColor()Lnet/minecraft/util/DyeColor;intermediary method_33635Lnet/minecraft/class_5815;method_33635()Lnet/minecraft/class_1767;official bLdpu;b()Lcti;
-
getSlotType
- Specified by:
getSlotTypein interfaceEquipment- Mappings:
Namespace Name Mixin selector named getSlotTypeLnet/minecraft/item/Equipment;getSlotType()Lnet/minecraft/entity/EquipmentSlot;intermediary method_7685Lnet/minecraft/class_5151;method_7685()Lnet/minecraft/class_1304;official mLcts;m()Lbsy;
-
getEquipSound
- Specified by:
getEquipSoundin interfaceEquipment- Mappings:
Namespace Name Mixin selector named getEquipSoundLnet/minecraft/item/Equipment;getEquipSound()Lnet/minecraft/registry/entry/RegistryEntry;intermediary method_31570Lnet/minecraft/class_5151;method_31570()Lnet/minecraft/class_6880;official nLcts;n()Ljm;
-