mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-20 12:20:11 +00:00
37 lines
1.1 KiB
Diff
37 lines
1.1 KiB
Diff
--- ../src_base/common/net/minecraft/src/TileEntity.java
|
|
+++ ../src_work/common/net/minecraft/src/TileEntity.java
|
|
@@ -250,4 +250,33 @@
|
|
addMapping(TileEntityEnchantmentTable.class, "EnchantTable");
|
|
addMapping(TileEntityEndPortal.class, "Airportal");
|
|
}
|
|
+
|
|
+ /**
|
|
+ * Determines if this TileEntity requires update calls.
|
|
+ * @return True if you want updateEntity() to be called, false if not
|
|
+ */
|
|
+ public boolean canUpdate()
|
|
+ {
|
|
+ return true;
|
|
+ }
|
|
+
|
|
+ /**
|
|
+ * Called when you receive a TileEntityData packet for the location this
|
|
+ * TileEntity is currently in. On the client, the NetworkManager will always
|
|
+ * be the remote server. On the server, it will be whomever is responsible for
|
|
+ * sending the packet.
|
|
+ *
|
|
+ * @param net The NetworkManager the packet originated from
|
|
+ * @param pkt The data packet
|
|
+ */
|
|
+ public void onDataPacket(NetworkManager net, Packet132TileEntityData pkt)
|
|
+ {
|
|
+ }
|
|
+
|
|
+ /**
|
|
+ * Called when the chunk this TileEntity is on is Unloaded.
|
|
+ */
|
|
+ public void onChunkUnload()
|
|
+ {
|
|
+ }
|
|
}
|