I am kinda new to the Minecraft modding and was following a tutorial about creating a tile entity. I'm using 1.16.2, while the tutorial was from Version 1.15, since I haven't found anything newer. My problem is, that in the tutorial he uses a read function to access the NBT data, but when I implement it the read funktion is markt as "not Overriding" anything and the super.read as "not implemented" (write works just fine). This is how it would look following the tutorial:
package com.texler.autoct.tileentity;
import com.texler.autoct.util.RegistryHandler;
import net.minecraft.nbt.CompoundNBT;
import net.minecraft.tileentity.ITickableTileEntity;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.tileentity.TileEntityType;
public class AutoCraftingTableTile extends TileEntity implements ITickableTileEntity {
public AutoCraftingTableTile(final TileEntityType<?> tileEntityTypeIn) {
super(tileEntityTypeIn);
}
public AutoCraftingTableTile() {
this(RegistryHandler.AUTO_CRAFTING_TABLE_TILE.get());
}
@Override
public void tick() {}
@Override
public CompoundNBT write(CompoundNBT compound) {
return super.write(compound);
}
@Override
public void read (CompoundNBT compound) {
super.read(compound);
}
}
I would appreciate if someone could tell me if I did a mistake or if the read function got replaced by something. I did look around for a few hours and found no information concerning this.