2014-05-29 01:33:32 +00:00
|
|
|
--- ../src-base/minecraft/net/minecraft/entity/EntityTracker.java
|
|
|
|
+++ ../src-work/minecraft/net/minecraft/entity/EntityTracker.java
|
2015-08-02 02:59:30 +00:00
|
|
|
@@ -58,6 +58,8 @@
|
|
|
|
|
|
|
|
public void func_72786_a(Entity p_72786_1_)
|
|
|
|
{
|
|
|
|
+ if (net.minecraftforge.fml.common.registry.EntityRegistry.instance().tryTrackingEntity(this, p_72786_1_)) return;
|
|
|
|
+
|
|
|
|
if (p_72786_1_ instanceof EntityPlayerMP)
|
|
|
|
{
|
|
|
|
this.func_72791_a(p_72786_1_, 512, 2);
|
|
|
|
@@ -355,4 +357,23 @@
|
2014-05-29 01:33:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
Initial update to 1.8, Super beta. Most rendering related hooks are out due to major changes in 1.8.
Some notes:
Almost all int x, int y, int z parameters have been changed to BlockPos class
ForgeDirection has been removed, replaced by net.minecraft.util.EnumFacing.
All FML classes have moved from packet cpw.mods.fml to net.minecraftforge.fml
Fluid Rendering has been disabled for the time being, to be re-evaulated and a test mod created for it.
Minecraft now uses a Model based system for rendering blocks and Items. The intention is to expand the model format to better suit modder's needed once it is evaulated.
As such, The model loaders from Forge have been removed, to be replaced by expanding vanilla's model format.
Metadata has been extracted out in Minecraft to IBlockState, which holds a list of properties instead of magic number metadata. DO NOT listen to the fearmongering, you can do EVERYTHING with block states you could previously with metadata.
Stencil Bits are disabled entirely by for the main Display, Modders must enable and recreate the FrameBuffer if they wish to use Stencil Bits.
2014-11-26 03:56:35 +00:00
|
|
|
+
|
2014-05-29 01:33:32 +00:00
|
|
|
+ /* ======================================== FORGE START =====================================*/
|
Initial update to 1.8, Super beta. Most rendering related hooks are out due to major changes in 1.8.
Some notes:
Almost all int x, int y, int z parameters have been changed to BlockPos class
ForgeDirection has been removed, replaced by net.minecraft.util.EnumFacing.
All FML classes have moved from packet cpw.mods.fml to net.minecraftforge.fml
Fluid Rendering has been disabled for the time being, to be re-evaulated and a test mod created for it.
Minecraft now uses a Model based system for rendering blocks and Items. The intention is to expand the model format to better suit modder's needed once it is evaulated.
As such, The model loaders from Forge have been removed, to be replaced by expanding vanilla's model format.
Metadata has been extracted out in Minecraft to IBlockState, which holds a list of properties instead of magic number metadata. DO NOT listen to the fearmongering, you can do EVERYTHING with block states you could previously with metadata.
Stencil Bits are disabled entirely by for the main Display, Modders must enable and recreate the FrameBuffer if they wish to use Stencil Bits.
2014-11-26 03:56:35 +00:00
|
|
|
+
|
2014-05-29 01:33:32 +00:00
|
|
|
+ // don't expose the EntityTrackerEntry directly so mods can't mess with the data in there as easily
|
|
|
|
+ /**
|
|
|
|
+ * Get all players tracking the given Entity. The Entity must be part of the World that this Tracker belongs to.
|
|
|
|
+ * @param entity the Entity
|
|
|
|
+ * @return all players tracking the Entity
|
|
|
|
+ */
|
|
|
|
+ public Set<net.minecraft.entity.player.EntityPlayer> getTrackingPlayers(Entity entity)
|
|
|
|
+ {
|
|
|
|
+ EntityTrackerEntry entry = (EntityTrackerEntry) field_72794_c.func_76041_a(entity.func_145782_y());
|
|
|
|
+ if (entry == null)
|
|
|
|
+ return java.util.Collections.emptySet();
|
|
|
|
+ else
|
|
|
|
+ return java.util.Collections.unmodifiableSet(entry.field_73134_o);
|
|
|
|
+ }
|
Initial update to 1.8, Super beta. Most rendering related hooks are out due to major changes in 1.8.
Some notes:
Almost all int x, int y, int z parameters have been changed to BlockPos class
ForgeDirection has been removed, replaced by net.minecraft.util.EnumFacing.
All FML classes have moved from packet cpw.mods.fml to net.minecraftforge.fml
Fluid Rendering has been disabled for the time being, to be re-evaulated and a test mod created for it.
Minecraft now uses a Model based system for rendering blocks and Items. The intention is to expand the model format to better suit modder's needed once it is evaulated.
As such, The model loaders from Forge have been removed, to be replaced by expanding vanilla's model format.
Metadata has been extracted out in Minecraft to IBlockState, which holds a list of properties instead of magic number metadata. DO NOT listen to the fearmongering, you can do EVERYTHING with block states you could previously with metadata.
Stencil Bits are disabled entirely by for the main Display, Modders must enable and recreate the FrameBuffer if they wish to use Stencil Bits.
2014-11-26 03:56:35 +00:00
|
|
|
+
|
2014-05-29 01:33:32 +00:00
|
|
|
+ /* ======================================== FORGE END =====================================*/
|
|
|
|
}
|