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

42 lines
1.4 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.BeaconBeamBlock;
import net.minecraft.world.level.block.TransparentBlock;
import net.minecraft.world.level.block.state.BlockBehaviour;
public class StainedGlassBlock
extends TransparentBlock
implements BeaconBeamBlock {
public static final MapCodec<StainedGlassBlock> CODEC = RecordCodecBuilder.mapCodec(i -> i.group((App)DyeColor.CODEC.fieldOf("color").forGetter(StainedGlassBlock::getColor), StainedGlassBlock.propertiesCodec()).apply((Applicative)i, StainedGlassBlock::new));
private final DyeColor color;
public MapCodec<StainedGlassBlock> codec() {
return CODEC;
}
public StainedGlassBlock(DyeColor color, BlockBehaviour.Properties properties) {
super(properties);
this.color = color;
}
@Override
public DyeColor getColor() {
return this.color;
}
}