Implement missing data syncing methods
Fix MRS not syncing data immediately.
This commit is contained in:
parent
f4feb07e47
commit
4d331aa758
10 changed files with 186 additions and 0 deletions
|
@ -14,6 +14,8 @@ import net.minecraft.util.ResourceLocation;
|
|||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.fml.common.registry.ForgeRegistries;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
|
||||
public class TileSpectralBlock extends TileEntity implements ITickable
|
||||
{
|
||||
|
@ -53,6 +55,7 @@ public class TileSpectralBlock extends TileEntity implements ITickable
|
|||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void onDataPacket(NetworkManager net, SPacketUpdateTileEntity pkt)
|
||||
{
|
||||
super.onDataPacket(net, pkt);
|
||||
|
@ -65,6 +68,12 @@ public class TileSpectralBlock extends TileEntity implements ITickable
|
|||
return writeToNBT(new NBTTagCompound());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void handleUpdateTag(NBTTagCompound tag)
|
||||
{
|
||||
readFromNBT(tag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue