2025-11-24 22:52:51 +03:00

39 lines
1.2 KiB
Java

/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* com.mojang.datafixers.kinds.App
* com.mojang.datafixers.kinds.Applicative
* com.mojang.serialization.MapCodec
* com.mojang.serialization.codecs.RecordCodecBuilder
*/
package net.minecraft.world.level.block;
import com.mojang.datafixers.kinds.App;
import com.mojang.datafixers.kinds.Applicative;
import com.mojang.serialization.MapCodec;
import com.mojang.serialization.codecs.RecordCodecBuilder;
import net.minecraft.world.item.DyeColor;
import net.minecraft.world.level.block.CarpetBlock;
import net.minecraft.world.level.block.state.BlockBehaviour;
public class WoolCarpetBlock
extends CarpetBlock {
public static final MapCodec<WoolCarpetBlock> CODEC = RecordCodecBuilder.mapCodec(i -> i.group((App)DyeColor.CODEC.fieldOf("color").forGetter(WoolCarpetBlock::getColor), WoolCarpetBlock.propertiesCodec()).apply((Applicative)i, WoolCarpetBlock::new));
private final DyeColor color;
public MapCodec<WoolCarpetBlock> codec() {
return CODEC;
}
protected WoolCarpetBlock(DyeColor color, BlockBehaviour.Properties properties) {
super(properties);
this.color = color;
}
public DyeColor getColor() {
return this.color;
}
}