2012-08-09 10:06:41 +00:00
|
|
|
--- ../src_base/common/net/minecraft/src/TileEntity.java
|
|
|
|
+++ ../src_work/common/net/minecraft/src/TileEntity.java
|
2012-08-15 09:18:23 +00:00
|
|
|
@@ -250,4 +250,41 @@
|
2012-08-06 10:35:57 +00:00
|
|
|
addMapping(TileEntityEnchantmentTable.class, "EnchantTable");
|
|
|
|
addMapping(TileEntityEndPortal.class, "Airportal");
|
|
|
|
}
|
2012-08-09 10:06:41 +00:00
|
|
|
+
|
2012-08-06 10:35:57 +00:00
|
|
|
+ /**
|
|
|
|
+ * Determines if this TileEntity requires update calls.
|
|
|
|
+ * @return True if you want updateEntity() to be called, false if not
|
|
|
|
+ */
|
|
|
|
+ public boolean canUpdate()
|
|
|
|
+ {
|
|
|
|
+ return true;
|
|
|
|
+ }
|
2012-08-09 10:06:41 +00:00
|
|
|
+
|
2012-08-06 10:35:57 +00:00
|
|
|
+ /**
|
|
|
|
+ * 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
|
|
|
|
+ */
|
2012-08-06 22:07:53 +00:00
|
|
|
+ public void onDataPacket(NetworkManager net, Packet132TileEntityData pkt)
|
|
|
|
+ {
|
|
|
|
+ }
|
2012-08-09 10:06:41 +00:00
|
|
|
+
|
2012-08-06 10:35:57 +00:00
|
|
|
+ /**
|
|
|
|
+ * Called when the chunk this TileEntity is on is Unloaded.
|
|
|
|
+ */
|
2012-08-06 22:07:53 +00:00
|
|
|
+ public void onChunkUnload()
|
|
|
|
+ {
|
2012-08-15 09:18:23 +00:00
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * @return The maximum distance between the player and the TileEntity at which the TileEntitySpecialRenderer will be called
|
|
|
|
+ */
|
|
|
|
+ public double getRenderDistance()
|
|
|
|
+ {
|
|
|
|
+ return 64;
|
2012-08-06 22:07:53 +00:00
|
|
|
+ }
|
2012-08-06 10:35:57 +00:00
|
|
|
}
|