Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Texler

Members
  • Joined

  • Last visited

Everything posted by Texler

  1. I see, so it is the func_230337_a_ that replaces the read funtion, since it takes the CompundNBT as a parameter?
  2. 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.

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.