mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-26 06:42:57 +00:00
Update Mantle to 1.16! Dropped Pulses and IRegistryUtil
This commit is contained in:
1 parent
f1b5162ff8
commit
f5ac108070
60 files changed
+356
-1832
No files matched your search
@@ -1,5 +1,6 @@
|
||||
package slimeknights.mantle.tileentity;
|
||||
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.block.Blocks;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
@@ -210,10 +211,10 @@ public abstract class InventoryTileEntity extends MantleTileEntity implements II
|
||||
@Override
|
||||
public ITextComponent getDisplayName() {
|
||||
if (this.hasCustomName()) {
|
||||
return new StringTextComponent(this.getName().getFormattedText());
|
||||
return new StringTextComponent(this.getName().getString());
|
||||
}
|
||||
|
||||
return new TranslationTextComponent(this.getName().getFormattedText());
|
||||
return new TranslationTextComponent(this.getName().getString());
|
||||
}
|
||||
|
||||
/* Supporting methods */
|
||||
@@ -239,14 +240,14 @@ public abstract class InventoryTileEntity extends MantleTileEntity implements II
|
||||
|
||||
/* NBT */
|
||||
@Override
|
||||
public void read(CompoundNBT tags) {
|
||||
super.read(tags);
|
||||
public void func_230337_a_(BlockState blockState, CompoundNBT tags) {
|
||||
super.func_230337_a_(blockState, tags);
|
||||
this.resizeInternal(tags.getInt("InventorySize"));
|
||||
|
||||
this.readInventoryFromNBT(tags);
|
||||
|
||||
if (tags.contains("CustomName", 8)) {
|
||||
this.inventoryTitle = ITextComponent.Serializer.fromJson(tags.getString("CustomName"));
|
||||
this.inventoryTitle = ITextComponent.Serializer.func_240643_a_(tags.getString("CustomName"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user