22 lines
598 B
Java
22 lines
598 B
Java
package carpet.mixins;
|
|
|
|
import carpet.fakes.BlockStateArgumentInterface;
|
|
import net.minecraft.command.argument.BlockStateArgument;
|
|
import net.minecraft.nbt.NbtCompound;
|
|
import org.jetbrains.annotations.Nullable;
|
|
import org.spongepowered.asm.mixin.Final;
|
|
import org.spongepowered.asm.mixin.Mixin;
|
|
import org.spongepowered.asm.mixin.Shadow;
|
|
|
|
@Mixin(BlockStateArgument.class)
|
|
public class BlockStateArgument_scarpetMixin implements BlockStateArgumentInterface
|
|
{
|
|
@Shadow @Final private @Nullable NbtCompound data;
|
|
|
|
@Override
|
|
public NbtCompound getCMTag()
|
|
{
|
|
return data;
|
|
}
|
|
}
|