Shovel API

This commit is contained in:
paulevsGitch 2022-01-21 18:31:58 +03:00
parent ba89751ea8
commit 0ff7799785
3 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,17 @@
package ru.bclib.mixin.common;
import net.minecraft.world.item.ShovelItem;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.state.BlockState;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Accessor;
import java.util.Map;
@Mixin(ShovelItem.class)
public interface ShovelItemAccessor {
@Accessor("FLATTENABLES")
static Map<Block, BlockState> bclib_getFlattenables() {
throw new AssertionError("@Accessor dummy body called");
}
}