moar types, wip
This commit is contained in:
1 parent
78b713907c
commit
945578fd89
4 files changed
+95
-9
No files matched your search
@@ -0,0 +1,21 @@
|
||||
package carpet.mixins;
|
||||
|
||||
import carpet.fakes.BlockStateArgumentInterface;
|
||||
import net.minecraft.command.argument.BlockStateArgument;
|
||||
import net.minecraft.nbt.CompoundTag;
|
||||
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 CompoundTag data;
|
||||
|
||||
@Override
|
||||
public CompoundTag getCMTag()
|
||||
{
|
||||
return data;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user