Fabric port in progress

This commit is contained in:
Sebastian Hartte
2020-06-28 00:45:33 +02:00
parent b79cd732b2
commit 37ce6b262e
102 changed files with 650 additions and 591 deletions
@@ -38,7 +38,7 @@ import net.minecraft.item.ItemStack;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.network.PacketByteBuf;
import net.minecraft.util.Identifier;
import net.minecraftforge.client.model.data.IModelData;
import net.minecraftforge.registries.ForgeRegistries;
import appeng.api.AEApi;
@@ -438,9 +438,8 @@ public class DriveBlockEntity extends AENetworkInvBlockEntity implements IChestO
return AEApi.instance().definitions().blocks().drive().maybeStack(1).orElse(ItemStack.EMPTY);
}
@Nonnull
@Override
public IModelData getModelData() {
public DriveModelData getRenderAttachmentData() {
return new DriveModelData(getUp(), getForward(), DriveSlotsState.fromChestOrDrive(this));
}
@@ -430,8 +430,8 @@ public class IOPortBlockEntity extends AENetworkInvBlockEntity
* Adds the items in the upgrade slots to the drop list.
*
* @param w world
* @param pos pos of tile entity
* @param drops drops of tile entity
* @param pos pos of block entity
* @param drops drops of block entity
*/
@Override
public void getDrops(final World w, final BlockPos pos, final List<ItemStack> drops) {