remove unneeded iface map option

This commit is contained in:
dfsek
2022-05-15 18:32:40 -07:00
parent 2abf809d0f
commit 3a8fb37cd6
23 changed files with 23 additions and 23 deletions
@@ -26,6 +26,6 @@ import com.dfsek.terra.api.world.biome.PlatformBiome;
@Mixin(Biome.class) @Mixin(Biome.class)
@Implements(@Interface(iface = PlatformBiome.class, prefix = "terra$", remap = Interface.Remap.NONE)) @Implements(@Interface(iface = PlatformBiome.class, prefix = "terra$"))
public abstract class BiomeMixin { public abstract class BiomeMixin {
} }
@@ -52,7 +52,7 @@ import com.dfsek.terra.api.Handle;
Biome.class Biome.class
}) })
@Implements(@Interface(iface = Handle.class, prefix = "terra$", remap = Interface.Remap.NONE)) @Implements(@Interface(iface = Handle.class, prefix = "terra$"))
public class HandleImplementationMixin { public class HandleImplementationMixin {
@Intrinsic @Intrinsic
public Object terra$getHandle() { public Object terra$getHandle() {
@@ -27,7 +27,7 @@ import com.dfsek.terra.api.block.BlockType;
@Mixin(Block.class) @Mixin(Block.class)
@Implements(@Interface(iface = BlockType.class, prefix = "terra$", remap = Interface.Remap.NONE)) @Implements(@Interface(iface = BlockType.class, prefix = "terra$"))
public abstract class BlockMixin { public abstract class BlockMixin {
public com.dfsek.terra.api.block.state.BlockState terra$getDefaultState() { public com.dfsek.terra.api.block.state.BlockState terra$getDefaultState() {
return (com.dfsek.terra.api.block.state.BlockState) ((Block) (Object) this).getDefaultState(); return (com.dfsek.terra.api.block.state.BlockState) ((Block) (Object) this).getDefaultState();
@@ -26,7 +26,7 @@ import com.dfsek.terra.api.block.state.BlockState;
@Mixin(net.minecraft.block.entity.BlockEntity.class) @Mixin(net.minecraft.block.entity.BlockEntity.class)
@Implements(@Interface(iface = BlockEntity.class, prefix = "terra$", remap = Interface.Remap.NONE)) @Implements(@Interface(iface = BlockEntity.class, prefix = "terra$"))
public abstract class BlockEntityMixin { public abstract class BlockEntityMixin {
public boolean terra$update(boolean applyPhysics) { public boolean terra$update(boolean applyPhysics) {
if(((net.minecraft.block.entity.BlockEntity) (Object) this).hasWorld()) //noinspection ConstantConditions if(((net.minecraft.block.entity.BlockEntity) (Object) this).hasWorld()) //noinspection ConstantConditions
@@ -27,7 +27,7 @@ import com.dfsek.terra.api.inventory.Inventory;
@Mixin(LootableContainerBlockEntity.class) @Mixin(LootableContainerBlockEntity.class)
@Implements(@Interface(iface = Container.class, prefix = "terra$", remap = Interface.Remap.NONE)) @Implements(@Interface(iface = Container.class, prefix = "terra$"))
public abstract class LootableContainerBlockEntityMixin extends BlockEntityMixin { public abstract class LootableContainerBlockEntityMixin extends BlockEntityMixin {
public Inventory terra$getInventory() { public Inventory terra$getInventory() {
return (Inventory) this; return (Inventory) this;
@@ -39,7 +39,7 @@ import com.dfsek.terra.fabric.mixin.access.MobSpawnerLogicAccessor;
@Mixin(MobSpawnerBlockEntity.class) @Mixin(MobSpawnerBlockEntity.class)
@Implements(@Interface(iface = MobSpawner.class, prefix = "terra$", remap = Interface.Remap.NONE)) @Implements(@Interface(iface = MobSpawner.class, prefix = "terra$"))
public abstract class MobSpawnerBlockEntityMixin extends BlockEntity { public abstract class MobSpawnerBlockEntityMixin extends BlockEntity {
private MobSpawnerBlockEntityMixin(BlockEntityType<?> type, BlockPos pos, BlockState state) { private MobSpawnerBlockEntityMixin(BlockEntityType<?> type, BlockPos pos, BlockState state) {
super(type, pos, state); super(type, pos, state);
@@ -32,7 +32,7 @@ import com.dfsek.terra.api.block.entity.Sign;
@Mixin(SignBlockEntity.class) @Mixin(SignBlockEntity.class)
@Implements(@Interface(iface = Sign.class, prefix = "terra$", remap = Interface.Remap.NONE)) @Implements(@Interface(iface = Sign.class, prefix = "terra$"))
public abstract class SignBlockEntityMixin { public abstract class SignBlockEntityMixin {
@Shadow @Shadow
@Final @Final
@@ -22,7 +22,7 @@ import com.dfsek.terra.fabric.mixin.access.StateAccessor;
@Mixin(AbstractBlockState.class) @Mixin(AbstractBlockState.class)
@Implements(@Interface(iface = BlockState.class, prefix = "terra$", remap = Interface.Remap.NONE)) @Implements(@Interface(iface = BlockState.class, prefix = "terra$"))
public abstract class BlockStateMixin extends State<Block, net.minecraft.block.BlockState> { public abstract class BlockStateMixin extends State<Block, net.minecraft.block.BlockState> {
private BlockStateMixin(Block owner, ImmutableMap<net.minecraft.state.property.Property<?>, Comparable<?>> entries, private BlockStateMixin(Block owner, ImmutableMap<net.minecraft.state.property.Property<?>, Comparable<?>> entries,
MapCodec<net.minecraft.block.BlockState> codec) { MapCodec<net.minecraft.block.BlockState> codec) {
@@ -31,7 +31,7 @@ import com.dfsek.terra.api.world.chunk.Chunk;
@Mixin(ChunkRegion.class) @Mixin(ChunkRegion.class)
@Implements(@Interface(iface = Chunk.class, prefix = "terraChunk$", remap = Interface.Remap.NONE)) @Implements(@Interface(iface = Chunk.class, prefix = "terraChunk$"))
public abstract class ChunkRegionMixin { public abstract class ChunkRegionMixin {
@Shadow @Shadow
@@ -34,7 +34,7 @@ import com.dfsek.terra.api.world.chunk.Chunk;
@Mixin(WorldChunk.class) @Mixin(WorldChunk.class)
@Implements(@Interface(iface = Chunk.class, prefix = "terra$", remap = Interface.Remap.NONE)) @Implements(@Interface(iface = Chunk.class, prefix = "terra$"))
public abstract class WorldChunkMixin { public abstract class WorldChunkMixin {
@Final @Final
@Shadow @Shadow
@@ -29,7 +29,7 @@ import com.dfsek.terra.api.world.chunk.generation.ProtoChunk;
@Mixin(net.minecraft.world.chunk.ProtoChunk.class) @Mixin(net.minecraft.world.chunk.ProtoChunk.class)
@Implements(@Interface(iface = ProtoChunk.class, prefix = "terra$", remap = Interface.Remap.NONE)) @Implements(@Interface(iface = ProtoChunk.class, prefix = "terra$"))
public abstract class ProtoChunkMixin { public abstract class ProtoChunkMixin {
@Shadow @Shadow
public abstract net.minecraft.block.BlockState getBlockState(BlockPos pos); public abstract net.minecraft.block.BlockState getBlockState(BlockPos pos);
@@ -33,7 +33,7 @@ import com.dfsek.terra.fabric.util.FabricAdapter;
@Mixin(Entity.class) @Mixin(Entity.class)
@Implements(@Interface(iface = com.dfsek.terra.api.entity.Entity.class, prefix = "terra$", remap = Interface.Remap.NONE)) @Implements(@Interface(iface = com.dfsek.terra.api.entity.Entity.class, prefix = "terra$"))
public abstract class EntityMixin { public abstract class EntityMixin {
@Shadow @Shadow
public net.minecraft.world.World world; public net.minecraft.world.World world;
@@ -24,6 +24,6 @@ import org.spongepowered.asm.mixin.Mixin;
@Mixin(EntityType.class) @Mixin(EntityType.class)
@Implements(@Interface(iface = com.dfsek.terra.api.entity.EntityType.class, prefix = "terra$", remap = Interface.Remap.NONE)) @Implements(@Interface(iface = com.dfsek.terra.api.entity.EntityType.class, prefix = "terra$"))
public abstract class EntityTypeMixin { public abstract class EntityTypeMixin {
} }
@@ -26,6 +26,6 @@ import com.dfsek.terra.api.entity.Player;
@Mixin(PlayerEntity.class) @Mixin(PlayerEntity.class)
@Implements(@Interface(iface = Player.class, prefix = "terra$", remap = Interface.Remap.NONE)) @Implements(@Interface(iface = Player.class, prefix = "terra$"))
public abstract class PlayerEntityMixin extends EntityMixin { public abstract class PlayerEntityMixin extends EntityMixin {
} }
@@ -36,7 +36,7 @@ import com.dfsek.terra.api.entity.Player;
@Mixin(ServerCommandSource.class) @Mixin(ServerCommandSource.class)
@Implements(@Interface(iface = CommandSender.class, prefix = "terra$", remap = Interface.Remap.NONE)) @Implements(@Interface(iface = CommandSender.class, prefix = "terra$"))
public abstract class ServerCommandSourceMixin { public abstract class ServerCommandSourceMixin {
@Shadow @Shadow
public abstract void sendFeedback(Text message, boolean broadcastToOps); public abstract void sendFeedback(Text message, boolean broadcastToOps);
@@ -28,7 +28,7 @@ import com.dfsek.terra.api.inventory.ItemStack;
@Mixin(LockableContainerBlockEntity.class) @Mixin(LockableContainerBlockEntity.class)
@Implements(@Interface(iface = Inventory.class, prefix = "terra$", remap = Interface.Remap.NONE)) @Implements(@Interface(iface = Inventory.class, prefix = "terra$"))
public class LockableContainerBlockEntityMixin { public class LockableContainerBlockEntityMixin {
@SuppressWarnings("ConstantConditions") @SuppressWarnings("ConstantConditions")
public void terra$setItem(int slot, ItemStack newStack) { public void terra$setItem(int slot, ItemStack newStack) {
@@ -27,7 +27,7 @@ import com.dfsek.terra.api.inventory.ItemStack;
@Mixin(Item.class) @Mixin(Item.class)
@Implements(@Interface(iface = com.dfsek.terra.api.inventory.Item.class, prefix = "terra$", remap = Interface.Remap.NONE)) @Implements(@Interface(iface = com.dfsek.terra.api.inventory.Item.class, prefix = "terra$"))
public abstract class ItemMixin { public abstract class ItemMixin {
@Shadow @Shadow
public abstract int getMaxDamage(); public abstract int getMaxDamage();
@@ -31,7 +31,7 @@ import com.dfsek.terra.api.inventory.item.ItemMeta;
@Mixin(ItemStack.class) @Mixin(ItemStack.class)
@Implements(@Interface(iface = com.dfsek.terra.api.inventory.ItemStack.class, prefix = "terra$", remap = Interface.Remap.NONE)) @Implements(@Interface(iface = com.dfsek.terra.api.inventory.ItemStack.class, prefix = "terra$"))
public abstract class ItemStackMixin { public abstract class ItemStackMixin {
@Shadow @Shadow
public abstract int getCount(); public abstract int getCount();
@@ -30,7 +30,7 @@ import com.dfsek.terra.api.inventory.ItemStack;
@Mixin(Enchantment.class) @Mixin(Enchantment.class)
@Implements(@Interface(iface = com.dfsek.terra.api.inventory.item.Enchantment.class, prefix = "terra$", remap = Interface.Remap.NONE)) @Implements(@Interface(iface = com.dfsek.terra.api.inventory.item.Enchantment.class, prefix = "terra$"))
public abstract class EnchantmentMixin { public abstract class EnchantmentMixin {
@Shadow @Shadow
public abstract boolean isAcceptableItem(net.minecraft.item.ItemStack stack); public abstract boolean isAcceptableItem(net.minecraft.item.ItemStack stack);
@@ -28,7 +28,7 @@ import com.dfsek.terra.api.inventory.item.Damageable;
@Mixin(ItemStack.class) @Mixin(ItemStack.class)
@Implements(@Interface(iface = Damageable.class, prefix = "terra$", remap = Interface.Remap.NONE)) @Implements(@Interface(iface = Damageable.class, prefix = "terra$"))
public abstract class ItemStackDamageableMixin { public abstract class ItemStackDamageableMixin {
@Shadow @Shadow
public abstract boolean isDamaged(); public abstract boolean isDamaged();
@@ -36,7 +36,7 @@ import com.dfsek.terra.api.inventory.item.ItemMeta;
@Mixin(ItemStack.class) @Mixin(ItemStack.class)
@Implements(@Interface(iface = ItemMeta.class, prefix = "terra$", remap = Interface.Remap.NONE)) @Implements(@Interface(iface = ItemMeta.class, prefix = "terra$"))
public abstract class ItemStackMetaMixin { public abstract class ItemStackMetaMixin {
@Shadow @Shadow
public abstract boolean hasEnchantments(); public abstract boolean hasEnchantments();
@@ -54,7 +54,7 @@ import com.dfsek.terra.fabric.util.FabricUtil;
@Mixin(ChunkRegion.class) @Mixin(ChunkRegion.class)
@Implements(@Interface(iface = ProtoWorld.class, prefix = "terraWorld$", remap = Interface.Remap.NONE)) @Implements(@Interface(iface = ProtoWorld.class, prefix = "terraWorld$"))
public abstract class ChunkRegionMixin { public abstract class ChunkRegionMixin {
private ConfigPack config; private ConfigPack config;
@@ -42,7 +42,7 @@ import com.dfsek.terra.fabric.util.FabricUtil;
@Mixin(net.minecraft.server.world.ServerWorld.class) @Mixin(net.minecraft.server.world.ServerWorld.class)
@Implements(@Interface(iface = ServerWorld.class, prefix = "terra$", remap = Interface.Remap.NONE)) @Implements(@Interface(iface = ServerWorld.class, prefix = "terra$"))
public abstract class ServerWorldMixin { public abstract class ServerWorldMixin {
@Shadow @Shadow
@Final @Final