mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 07:13:28 +01:00
Remove old TileEntityBase TODO's
Remove unused method
This commit is contained in:
parent
d112602764
commit
3d5a99414f
2 changed files with 0 additions and 35 deletions
|
@ -49,25 +49,11 @@ public abstract class TileEntityBase extends BlockEntity {
|
|||
this.writeSyncableNBT(compound, lookupProvider, NBTType.SAVE_TILE);
|
||||
}
|
||||
|
||||
// TODO: [port] remove if the above is correct
|
||||
// @Override
|
||||
// public final CompoundNBT writeToNBT(CompoundNBT compound) {
|
||||
// this.writeSyncableNBT(compound, NBTType.SAVE_TILE);
|
||||
// return compound;
|
||||
// }
|
||||
|
||||
@Override
|
||||
public void loadAdditional(CompoundTag compound, HolderLookup.Provider lookupProvider) {
|
||||
this.readSyncableNBT(compound, lookupProvider, NBTType.SAVE_TILE);
|
||||
}
|
||||
|
||||
|
||||
// TODO: [port] remove if the above is correct
|
||||
// @Override
|
||||
// public final void readFromNBT(CompoundNBT compound) {
|
||||
// this.readSyncableNBT(compound, NBTType.SAVE_TILE);
|
||||
// }
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public ClientboundBlockEntityDataPacket getUpdatePacket() {
|
||||
|
@ -150,22 +136,6 @@ public abstract class TileEntityBase extends BlockEntity {
|
|||
}
|
||||
}
|
||||
|
||||
// TODO: [port] eval if still required in some way
|
||||
// @Override
|
||||
// public boolean shouldRefresh(World world, BlockPos pos, BlockState oldState, BlockState newState) {
|
||||
// return !oldState.getBlock().isAssociatedBlock(newState.getBlock());
|
||||
// }
|
||||
|
||||
@Deprecated
|
||||
public String getNameForTranslation() {
|
||||
return "removeme";// "container.actuallyadditions." + this.name + ".name";
|
||||
}
|
||||
|
||||
// @Override
|
||||
// public ITextComponent getDisplayName() {
|
||||
// return new TranslationTextComponent(this.getNameForTranslation());
|
||||
// }
|
||||
|
||||
public int getComparatorStrength() {
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -72,11 +72,6 @@ public final class AssetUtil {
|
|||
guiGraphics.drawString(font, text, xSize / 2f - font.width(text) / 2f, yPositionOfMachineText, 0xFFFFFF, false);
|
||||
}
|
||||
|
||||
|
||||
public static void displayNameString(GuiGraphics guiGraphics, Font font, int xSize, int yPositionOfMachineText, TileEntityBase tile) {
|
||||
displayNameString(guiGraphics, font, xSize, yPositionOfMachineText, I18n.get(tile.getNameForTranslation()));
|
||||
}
|
||||
|
||||
// public static void renderBlockInWorld(Block block, int meta) {
|
||||
// renderItemInWorld(new ItemStack(block, 1, meta), combinedLightIn, combinedOverlayIn, matrices, buffer);
|
||||
// }
|
||||
|
|
Loading…
Reference in a new issue