Merge branch 'master' into 1.17
This commit is contained in:
commit
ba58a99c21
8 files changed
+188
-1
No files matched your search
@@ -0,0 +1,21 @@
|
||||
package carpet.mixins;
|
||||
|
||||
import carpet.fakes.InventoryBearerInterface;
|
||||
import net.minecraft.entity.passive.HorseBaseEntity;
|
||||
import net.minecraft.inventory.Inventory;
|
||||
import net.minecraft.inventory.SimpleInventory;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Shadow;
|
||||
|
||||
@Mixin(HorseBaseEntity.class)
|
||||
public class HorseBaseEntity_scarpetMixin implements InventoryBearerInterface
|
||||
{
|
||||
|
||||
@Shadow protected SimpleInventory items;
|
||||
|
||||
@Override
|
||||
public Inventory getCMInventory()
|
||||
{
|
||||
return items;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package carpet.mixins;
|
||||
|
||||
import carpet.fakes.InventoryBearerInterface;
|
||||
import net.minecraft.entity.mob.PillagerEntity;
|
||||
import net.minecraft.inventory.Inventory;
|
||||
import net.minecraft.inventory.SimpleInventory;
|
||||
import org.spongepowered.asm.mixin.Final;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Shadow;
|
||||
|
||||
@Mixin(PillagerEntity.class)
|
||||
public class PillagerEntity_scarpetMixin implements InventoryBearerInterface
|
||||
{
|
||||
@Shadow @Final private SimpleInventory inventory;
|
||||
|
||||
@Override
|
||||
public Inventory getCMInventory()
|
||||
{
|
||||
return inventory;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user