Permalink
Browse files

0.2.1

  • Loading branch information...
grum committed May 27, 2011
0 parents commit fef20f5f04fe7e5be4d8ef983efd0e68b98f83dd
Showing with 23,964 additions and 0 deletions.
  1. +4 −0 META-INF/MANIFEST.MF
  2. +4 −0 README.md
  3. +350 −0 net/minecraft/server/AxisAlignedBB.java
  4. +439 −0 net/minecraft/server/Block.java
  5. +18 −0 net/minecraft/server/BlockBookshelf.java
  6. +21 −0 net/minecraft/server/BlockBreakable.java
  7. +228 −0 net/minecraft/server/BlockButton.java
  8. +81 −0 net/minecraft/server/BlockCactus.java
  9. +115 −0 net/minecraft/server/BlockChest.java
  10. +18 −0 net/minecraft/server/BlockClay.java
  11. +25 −0 net/minecraft/server/BlockContainer.java
  12. +106 −0 net/minecraft/server/BlockCrops.java
  13. +8 −0 net/minecraft/server/BlockDirt.java
  14. +171 −0 net/minecraft/server/BlockDoor.java
  15. +26 −0 net/minecraft/server/BlockFence.java
  16. +162 −0 net/minecraft/server/BlockFire.java
  17. +55 −0 net/minecraft/server/BlockFlower.java
  18. +275 −0 net/minecraft/server/BlockFlowing.java
  19. +240 −0 net/minecraft/server/BlockFluids.java
  20. +78 −0 net/minecraft/server/BlockFurnace.java
  21. +14 −0 net/minecraft/server/BlockGlass.java
  22. +34 −0 net/minecraft/server/BlockGrass.java
  23. +14 −0 net/minecraft/server/BlockGravel.java
  24. +35 −0 net/minecraft/server/BlockIce.java
  25. +47 −0 net/minecraft/server/BlockJukeBox.java
  26. +99 −0 net/minecraft/server/BlockLadder.java
  27. +116 −0 net/minecraft/server/BlockLeaves.java
  28. +21 −0 net/minecraft/server/BlockLeavesBase.java
  29. +199 −0 net/minecraft/server/BlockLever.java
  30. +23 −0 net/minecraft/server/BlockLog.java
  31. +87 −0 net/minecraft/server/BlockMinecartTrack.java
  32. +26 −0 net/minecraft/server/BlockMobSpawner.java
  33. +19 −0 net/minecraft/server/BlockMushroom.java
  34. +18 −0 net/minecraft/server/BlockObsidian.java
  35. +18 −0 net/minecraft/server/BlockOre.java
  36. +13 −0 net/minecraft/server/BlockOreBlock.java
  37. +138 −0 net/minecraft/server/BlockPressurePlate.java
  38. +96 −0 net/minecraft/server/BlockRedstoneOre.java
  39. +128 −0 net/minecraft/server/BlockRedstoneTorch.java
  40. +291 −0 net/minecraft/server/BlockRedstoneWire.java
  41. +73 −0 net/minecraft/server/BlockReed.java
  42. +56 −0 net/minecraft/server/BlockSand.java
  43. +35 −0 net/minecraft/server/BlockSapling.java
  44. +108 −0 net/minecraft/server/BlockSign.java
  45. +61 −0 net/minecraft/server/BlockSnow.java
  46. +26 −0 net/minecraft/server/BlockSnowBlock.java
  47. +85 −0 net/minecraft/server/BlockSoil.java
  48. +35 −0 net/minecraft/server/BlockSponge.java
  49. +226 −0 net/minecraft/server/BlockStairs.java
  50. +56 −0 net/minecraft/server/BlockStationary.java
  51. +57 −0 net/minecraft/server/BlockStep.java
  52. +14 −0 net/minecraft/server/BlockStone.java
  53. +39 −0 net/minecraft/server/BlockTNT.java
  54. +138 −0 net/minecraft/server/BlockTorch.java
  55. +18 −0 net/minecraft/server/BlockWorkbench.java
  56. +547 −0 net/minecraft/server/Chunk.java
  57. +63 −0 net/minecraft/server/ChunkCache.java
  58. +31 −0 net/minecraft/server/ChunkCoordIntPair.java
  59. +26 −0 net/minecraft/server/ChunkCoordinates.java
  60. +220 −0 net/minecraft/server/ChunkLoader.java
  61. +28 −0 net/minecraft/server/ChunkPosition.java
  62. +492 −0 net/minecraft/server/ChunkProviderGenerate.java
  63. +204 −0 net/minecraft/server/ChunkProviderLoadOrGenerate.java
  64. +205 −0 net/minecraft/server/ChunkProviderServer.java
  65. +83 −0 net/minecraft/server/CompressedStreamTools.java
  66. +51 −0 net/minecraft/server/ConsoleLogFormatter.java
  67. +32 −0 net/minecraft/server/ConsoleLogManager.java
  68. +828 −0 net/minecraft/server/Entity.java
  69. +32 −0 net/minecraft/server/EntityAnimal.java
  70. +229 −0 net/minecraft/server/EntityArrow.java
  71. +219 −0 net/minecraft/server/EntityBoat.java
  72. +76 −0 net/minecraft/server/EntityChicken.java
  73. +40 −0 net/minecraft/server/EntityCow.java
  74. +155 −0 net/minecraft/server/EntityCreature.java
  75. +74 −0 net/minecraft/server/EntityCreeper.java
  76. +75 −0 net/minecraft/server/EntityFallingSand.java
  77. +18 −0 net/minecraft/server/EntityGiantZombie.java
  78. +242 −0 net/minecraft/server/EntityHuman.java
  79. +196 −0 net/minecraft/server/EntityItem.java
  80. +160 −0 net/minecraft/server/EntityList.java
  81. +53 −0 net/minecraft/server/EntityListEntry.java
  82. +743 −0 net/minecraft/server/EntityLiving.java
  83. +594 −0 net/minecraft/server/EntityMinecart.java
  84. +83 −0 net/minecraft/server/EntityMonster.java
  85. +220 −0 net/minecraft/server/EntityPainting.java
  86. +39 −0 net/minecraft/server/EntityPig.java
  87. +110 −0 net/minecraft/server/EntityPlayer.java
  88. +51 −0 net/minecraft/server/EntitySheep.java
  89. +68 −0 net/minecraft/server/EntitySkeleton.java
  90. +133 −0 net/minecraft/server/EntitySlime.java
  91. +172 −0 net/minecraft/server/EntitySnowball.java
  92. +73 −0 net/minecraft/server/EntitySpider.java
  93. +69 −0 net/minecraft/server/EntityTNTPrimed.java
  94. +101 −0 net/minecraft/server/EntityTracker.java
  95. +172 −0 net/minecraft/server/EntityTrackerEntry.java
  96. +90 −0 net/minecraft/server/EntityTypes.java
  97. +39 −0 net/minecraft/server/EntityZombie.java
  98. +21 −0 net/minecraft/server/EnumArt.java
  99. +10 −0 net/minecraft/server/EnumMobType.java
  100. +13 −0 net/minecraft/server/EnumSkyBlock.java
  101. +141 −0 net/minecraft/server/Explosion.java
  102. +50 −0 net/minecraft/server/GuiLogFormatter.java
  103. +38 −0 net/minecraft/server/GuiLogOutputHandler.java
  104. +60 −0 net/minecraft/server/GuiStatsComponent.java
  105. +17 −0 net/minecraft/server/GuiStatsListener.java
  106. +3 −0 net/minecraft/server/IAnimal.java
  107. +12 −0 net/minecraft/server/IBlockAccess.java
  108. +14 −0 net/minecraft/server/IChunkLoader.java
  109. +16 −0 net/minecraft/server/IChunkProvider.java
  110. +8 −0 net/minecraft/server/ICommandListener.java
  111. +8 −0 net/minecraft/server/IInventory.java
  112. +3 −0 net/minecraft/server/IMonster.java
  113. +10 −0 net/minecraft/server/IProgressUpdate.java
  114. +6 −0 net/minecraft/server/IUpdatePlayerListBox.java
  115. +22 −0 net/minecraft/server/IWorldAccess.java
  116. +22 −0 net/minecraft/server/InventoryLargeChest.java
  117. +274 −0 net/minecraft/server/InventoryPlayer.java
  118. +148 −0 net/minecraft/server/Item.java
  119. +21 −0 net/minecraft/server/ItemArmor.java
  120. +10 −0 net/minecraft/server/ItemAxe.java
  121. +58 −0 net/minecraft/server/ItemBlock.java
  122. +9 −0 net/minecraft/server/ItemBoat.java
  123. +9 −0 net/minecraft/server/ItemBow.java
  124. +56 −0 net/minecraft/server/ItemBucket.java
  125. +76 −0 net/minecraft/server/ItemDoor.java
  126. +56 −0 net/minecraft/server/ItemFlintAndSteel.java
  127. +12 −0 net/minecraft/server/ItemFood.java
  128. +41 −0 net/minecraft/server/ItemHoe.java
  129. +107 −0 net/minecraft/server/ItemInWorldManager.java
  130. +24 −0 net/minecraft/server/ItemMinecart.java
  131. +40 −0 net/minecraft/server/ItemPainting.java
  132. +16 −0 net/minecraft/server/ItemPickaxe.java
  133. +23 −0 net/minecraft/server/ItemRecord.java
  134. +45 −0 net/minecraft/server/ItemRedstone.java
  135. +57 −0 net/minecraft/server/ItemReed.java
  136. +10 −0 net/minecraft/server/ItemSaddle.java
  137. +27 −0 net/minecraft/server/ItemSeeds.java
  138. +52 −0 net/minecraft/server/ItemSign.java
  139. +9 −0 net/minecraft/server/ItemSnowball.java
  140. +8 −0 net/minecraft/server/ItemSoup.java
  141. +14 −0 net/minecraft/server/ItemSpade.java
  142. +106 −0 net/minecraft/server/ItemStack.java
  143. +25 −0 net/minecraft/server/ItemSword.java
  144. +37 −0 net/minecraft/server/ItemTool.java
  145. +28 −0 net/minecraft/server/MapGenBase.java
  146. +198 −0 net/minecraft/server/MapGenCaves.java
  147. +55 −0 net/minecraft/server/Material.java
  148. +18 −0 net/minecraft/server/MaterialLiquid.java
  149. +18 −0 net/minecraft/server/MaterialLogic.java
  150. +18 −0 net/minecraft/server/MaterialTransparent.java
  151. +58 −0 net/minecraft/server/MathHelper.java
  152. +183 −0 net/minecraft/server/MetadataChunkBlock.java
  153. +331 −0 net/minecraft/server/MinecartTrackLogic.java
  154. +8 −0 net/minecraft/server/MinecraftException.java
  155. +491 −0 net/minecraft/server/MinecraftServer.java
  156. +27 −0 net/minecraft/server/MovingObjectPosition.java
  157. +128 −0 net/minecraft/server/NBTBase.java
  158. +31 −0 net/minecraft/server/NBTTagByte.java
  159. +35 −0 net/minecraft/server/NBTTagByteArray.java
  160. +136 −0 net/minecraft/server/NBTTagCompound.java
  161. +31 −0 net/minecraft/server/NBTTagDouble.java
  162. +21 −0 net/minecraft/server/NBTTagEnd.java
  163. +31 −0 net/minecraft/server/NBTTagFloat.java
  164. +31 −0 net/minecraft/server/NBTTagInt.java
  165. +64 −0 net/minecraft/server/NBTTagList.java
  166. +31 −0 net/minecraft/server/NBTTagLong.java
  167. +31 −0 net/minecraft/server/NBTTagShort.java
  168. +34 −0 net/minecraft/server/NBTTagString.java
  169. +112 −0 net/minecraft/server/NetHandler.java
  170. +105 −0 net/minecraft/server/NetLoginHandler.java
  171. +396 −0 net/minecraft/server/NetServerHandler.java
  172. +33 −0 net/minecraft/server/NetworkAcceptThread.java
  173. +86 −0 net/minecraft/server/NetworkListenThread.java
  174. +217 −0 net/minecraft/server/NetworkManager.java
  175. +33 −0 net/minecraft/server/NetworkMasterThread.java
  176. +52 −0 net/minecraft/server/NetworkReaderThread.java
  177. +46 −0 net/minecraft/server/NetworkWriterThread.java
  178. +43 −0 net/minecraft/server/NextTickListEntry.java
  179. +38 −0 net/minecraft/server/NibbleArray.java
  180. +6 −0 net/minecraft/server/NoiseGenerator.java
  181. +49 −0 net/minecraft/server/NoiseGeneratorOctaves.java
  182. +173 −0 net/minecraft/server/NoiseGeneratorPerlin.java
  183. +109 −0 net/minecraft/server/Packet.java
  184. +19 −0 net/minecraft/server/Packet0KeepAlive.java
  185. +35 −0 net/minecraft/server/Packet10Flying.java
  186. +31 −0 net/minecraft/server/Packet11PlayerPosition.java
  187. +27 −0 net/minecraft/server/Packet12PlayerLook.java
  188. +48 −0 net/minecraft/server/Packet13PlayerLookMove.java
  189. +39 −0 net/minecraft/server/Packet14BlockDig.java
  190. +39 −0 net/minecraft/server/Packet15Place.java
  191. +35 −0 net/minecraft/server/Packet16BlockItemSwitch.java
  192. +42 −0 net/minecraft/server/Packet17AddToInventory.java
  193. +35 −0 net/minecraft/server/Packet18ArmAnimation.java
  194. +39 −0 net/minecraft/server/Packet1Login.java
  195. +61 −0 net/minecraft/server/Packet20NamedEntitySpawn.java
  196. +63 −0 net/minecraft/server/Packet21PickupSpawn.java
  197. +35 −0 net/minecraft/server/Packet22Collect.java
  198. +47 −0 net/minecraft/server/Packet23VehicleSpawn.java
  199. +55 −0 net/minecraft/server/Packet24MobSpawn.java
  200. +31 −0 net/minecraft/server/Packet255KickDisconnect.java
  201. +31 −0 net/minecraft/server/Packet29DestroyEntity.java
  202. +31 −0 net/minecraft/server/Packet2Handshake.java
  203. +37 −0 net/minecraft/server/Packet30Entity.java
  204. +34 −0 net/minecraft/server/Packet31RelEntityMove.java
  205. +34 −0 net/minecraft/server/Packet32EntityLook.java
  206. +43 −0 net/minecraft/server/Packet33RelEntityMoveLook.java
  207. +60 −0 net/minecraft/server/Packet34EntityTeleport.java
  208. +31 −0 net/minecraft/server/Packet3Chat.java
  209. +31 −0 net/minecraft/server/Packet4UpdateTime.java
  210. +40 −0 net/minecraft/server/Packet50PreChunk.java
  211. +89 −0 net/minecraft/server/Packet51MapChunk.java
  212. +76 −0 net/minecraft/server/Packet52MultiBlockChange.java
  213. +50 −0 net/minecraft/server/Packet53BlockChange.java
  214. +60 −0 net/minecraft/server/Packet59ComplexEntity.java
  215. +62 −0 net/minecraft/server/Packet5PlayerInventory.java
  216. +39 −0 net/minecraft/server/Packet6SpawnPosition.java
  217. +128 −0 net/minecraft/server/Path.java
  218. +29 −0 net/minecraft/server/PathEntity.java
  219. +46 −0 net/minecraft/server/PathPoint.java
  220. +201 −0 net/minecraft/server/Pathfinder.java
  221. +175 −0 net/minecraft/server/PlayerInstance.java
  222. +137 −0 net/minecraft/server/PlayerList.java
  223. +27 −0 net/minecraft/server/PlayerListBox.java
  224. +53 −0 net/minecraft/server/PlayerListEntry.java
  225. +150 −0 net/minecraft/server/PlayerManager.java
  226. +54 −0 net/minecraft/server/PlayerNBTManager.java
  227. +71 −0 net/minecraft/server/PropertyManager.java
  228. +16 −0 net/minecraft/server/RedstoneUpdateInfo.java
  229. +12 −0 net/minecraft/server/ServerCommand.java
  230. +321 −0 net/minecraft/server/ServerConfigurationManager.java
  231. +98 −0 net/minecraft/server/ServerGUI.java
  232. +27 −0 net/minecraft/server/ServerGuiCommandListener.java
  233. +15 −0 net/minecraft/server/ServerGuiFocusadapter.java
  234. +27 −0 net/minecraft/server/ServerWindowAdapter.java
  235. +135 −0 net/minecraft/server/SpawnerCreature.java
  236. +19 −0 net/minecraft/server/SpawnerMonsters.java
  237. +26 −0 net/minecraft/server/StepSound.java
  238. +8 −0 net/minecraft/server/StepSoundSand.java
  239. +8 −0 net/minecraft/server/StepSoundStone.java
  240. +27 −0 net/minecraft/server/ThreadCommandReader.java
  241. +36 −0 net/minecraft/server/ThreadLoginVerifier.java
  242. +22 −0 net/minecraft/server/ThreadMonitorConnection.java
  243. +15 −0 net/minecraft/server/ThreadServerApplication.java
  244. +24 −0 net/minecraft/server/ThreadSleepForever.java
  245. +79 −0 net/minecraft/server/TileEntity.java
  246. +62 −0 net/minecraft/server/TileEntityChest.java
  247. +151 −0 net/minecraft/server/TileEntityFurnace.java
  248. +98 −0 net/minecraft/server/TileEntityMobSpawner.java
  249. +28 −0 net/minecraft/server/TileEntitySign.java
  250. +138 −0 net/minecraft/server/Vec3D.java
  251. +1,745 −0 net/minecraft/server/World.java
  252. +357 −0 net/minecraft/server/WorldGenBigTree.java
  253. +28 −0 net/minecraft/server/WorldGenCactus.java
  254. +57 −0 net/minecraft/server/WorldGenClay.java
  255. +134 −0 net/minecraft/server/WorldGenDungeons.java
  256. +26 −0 net/minecraft/server/WorldGenFlowers.java
  257. +64 −0 net/minecraft/server/WorldGenLiquids.java
  258. +49 −0 net/minecraft/server/WorldGenMinable.java
  259. +28 −0 net/minecraft/server/WorldGenReed.java
  260. +86 −0 net/minecraft/server/WorldGenTrees.java
  261. +12 −0 net/minecraft/server/WorldGenerator.java
  262. +36 −0 net/minecraft/server/WorldManager.java
  263. +48 −0 net/minecraft/server/WorldServer.java
  264. 0 null
@@ -0,0 +1,4 @@
+Manifest-Version: 1.0
+Created-By: 1.6.0
+Main-Class: net.minecraft.server.MinecraftServer
+
@@ -0,0 +1,4 @@
+mc-dev
+======
+
+This repository contains [automatically generated](https://github.com/Bukkit/Bukkit-MinecraftServer/) decompiled sources of a (internally renamed) minecraft_server.jar. The original minecraft_server.jar (and therefor this code) is copyrighted by [Mojang AB](http://www.mojang.com).

This comment has been minimized.

Show comment
Hide comment
@Jckf

Jckf Feb 5, 2013

The "automatically generated" link is dead.

@Jckf

Jckf Feb 5, 2013

The "automatically generated" link is dead.

This comment has been minimized.

Show comment
Hide comment
@grum

grum Feb 5, 2013

Member

Not for the cool people ;D

@grum

grum Feb 5, 2013

Member

Not for the cool people ;D

This comment has been minimized.

Show comment
Hide comment
@Crazy-Uncle-Harris

Crazy-Uncle-Harris Feb 5, 2013

its just a private repo..

@Crazy-Uncle-Harris

Crazy-Uncle-Harris Feb 5, 2013

its just a private repo..

This comment has been minimized.

Show comment
Hide comment
@autoit4you

autoit4you Jul 7, 2013

How exactly is the code generated?

@autoit4you

autoit4you Jul 7, 2013

How exactly is the code generated?

This comment has been minimized.

Show comment
Hide comment
@grum

grum Jul 7, 2013

Member

By code in a private repo.

@grum

grum Jul 7, 2013

Member

By code in a private repo.

This comment has been minimized.

Show comment
Hide comment
@Wilee999

Wilee999 Oct 19, 2013

This is the complete vanilla server source code?

Also, why is there no src?

@Wilee999

Wilee999 Oct 19, 2013

This is the complete vanilla server source code?

Also, why is there no src?

This comment has been minimized.

Show comment
Hide comment
@feildmaster

feildmaster Nov 10, 2013

Member

You aren't supposed to do anything with this repo... (directly)

@feildmaster

feildmaster Nov 10, 2013

Member

You aren't supposed to do anything with this repo... (directly)

This comment has been minimized.

Show comment
Hide comment
@Wilee999

Wilee999 Nov 10, 2013

Yeah I learned that recently, just for the net.minecraft.server package in CraftBukkit.

@Wilee999

Wilee999 Nov 10, 2013

Yeah I learned that recently, just for the net.minecraft.server package in CraftBukkit.

@@ -0,0 +1,350 @@
+package net.minecraft.server;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class AxisAlignedBB {
+
+ private static List g = new ArrayList();
+ private static int h = 0;
+ public double a;
+ public double b;
+ public double c;
+ public double d;
+ public double e;
+ public double f;
+
+ public static AxisAlignedBB a(double d0, double d1, double d2, double d3, double d4, double d5) {
+ return new AxisAlignedBB(d0, d1, d2, d3, d4, d5);
+ }
+
+ public static void a() {
+ h = 0;
+ }
+
+ public static AxisAlignedBB b(double d0, double d1, double d2, double d3, double d4, double d5) {
+ if (h >= g.size()) {
+ g.add(a(0.0D, 0.0D, 0.0D, 0.0D, 0.0D, 0.0D));
+ }
+
+ return ((AxisAlignedBB) g.get(h++)).c(d0, d1, d2, d3, d4, d5);
+ }
+
+ private AxisAlignedBB(double d0, double d1, double d2, double d3, double d4, double d5) {
+ this.a = d0;
+ this.b = d1;
+ this.c = d2;
+ this.d = d3;
+ this.e = d4;
+ this.f = d5;
+ }
+
+ public AxisAlignedBB c(double d0, double d1, double d2, double d3, double d4, double d5) {
+ this.a = d0;
+ this.b = d1;
+ this.c = d2;
+ this.d = d3;
+ this.e = d4;
+ this.f = d5;
+ return this;
+ }
+
+ public AxisAlignedBB a(double d0, double d1, double d2) {
+ double d3 = this.a;
+ double d4 = this.b;
+ double d5 = this.c;
+ double d6 = this.d;
+ double d7 = this.e;
+ double d8 = this.f;
+
+ if (d0 < 0.0D) {
+ d3 += d0;
+ }
+
+ if (d0 > 0.0D) {
+ d6 += d0;
+ }
+
+ if (d1 < 0.0D) {
+ d4 += d1;
+ }
+
+ if (d1 > 0.0D) {
+ d7 += d1;
+ }
+
+ if (d2 < 0.0D) {
+ d5 += d2;
+ }
+
+ if (d2 > 0.0D) {
+ d8 += d2;
+ }
+
+ return b(d3, d4, d5, d6, d7, d8);
+ }
+
+ public AxisAlignedBB b(double d0, double d1, double d2) {
+ double d3 = this.a - d0;
+ double d4 = this.b - d1;
+ double d5 = this.c - d2;
+ double d6 = this.d + d0;
+ double d7 = this.e + d1;
+ double d8 = this.f + d2;
+
+ return b(d3, d4, d5, d6, d7, d8);
+ }
+
+ public AxisAlignedBB c(double d0, double d1, double d2) {
+ return b(this.a + d0, this.b + d1, this.c + d2, this.d + d0, this.e + d1, this.f + d2);
+ }
+
+ public double a(AxisAlignedBB axisalignedbb, double d0) {
+ if (axisalignedbb.e > this.b && axisalignedbb.b < this.e) {
+ if (axisalignedbb.f > this.c && axisalignedbb.c < this.f) {
+ double d1;
+
+ if (d0 > 0.0D && axisalignedbb.d <= this.a) {
+ d1 = this.a - axisalignedbb.d;
+ if (d1 < d0) {
+ d0 = d1;
+ }
+ }
+
+ if (d0 < 0.0D && axisalignedbb.a >= this.d) {
+ d1 = this.d - axisalignedbb.a;
+ if (d1 > d0) {
+ d0 = d1;
+ }
+ }
+
+ return d0;
+ } else {
+ return d0;
+ }
+ } else {
+ return d0;
+ }
+ }
+
+ public double b(AxisAlignedBB axisalignedbb, double d0) {
+ if (axisalignedbb.d > this.a && axisalignedbb.a < this.d) {
+ if (axisalignedbb.f > this.c && axisalignedbb.c < this.f) {
+ double d1;
+
+ if (d0 > 0.0D && axisalignedbb.e <= this.b) {
+ d1 = this.b - axisalignedbb.e;
+ if (d1 < d0) {
+ d0 = d1;
+ }
+ }
+
+ if (d0 < 0.0D && axisalignedbb.b >= this.e) {
+ d1 = this.e - axisalignedbb.b;
+ if (d1 > d0) {
+ d0 = d1;
+ }
+ }
+
+ return d0;
+ } else {
+ return d0;
+ }
+ } else {
+ return d0;
+ }
+ }
+
+ public double c(AxisAlignedBB axisalignedbb, double d0) {
+ if (axisalignedbb.d > this.a && axisalignedbb.a < this.d) {
+ if (axisalignedbb.e > this.b && axisalignedbb.b < this.e) {
+ double d1;
+
+ if (d0 > 0.0D && axisalignedbb.f <= this.c) {
+ d1 = this.c - axisalignedbb.f;
+ if (d1 < d0) {
+ d0 = d1;
+ }
+ }
+
+ if (d0 < 0.0D && axisalignedbb.c >= this.f) {
+ d1 = this.f - axisalignedbb.c;
+ if (d1 > d0) {
+ d0 = d1;
+ }
+ }
+
+ return d0;
+ } else {
+ return d0;
+ }
+ } else {
+ return d0;
+ }
+ }
+
+ public boolean a(AxisAlignedBB axisalignedbb) {
+ return axisalignedbb.d > this.a && axisalignedbb.a < this.d ? (axisalignedbb.e > this.b && axisalignedbb.b < this.e ? axisalignedbb.f > this.c && axisalignedbb.c < this.f : false) : false;
+ }
+
+ public AxisAlignedBB d(double d0, double d1, double d2) {
+ this.a += d0;
+ this.b += d1;
+ this.c += d2;
+ this.d += d0;
+ this.e += d1;
+ this.f += d2;
+ return this;
+ }
+
+ public AxisAlignedBB e(double d0, double d1, double d2) {
+ double d3 = this.a;
+ double d4 = this.b;
+ double d5 = this.c;
+ double d6 = this.d;
+ double d7 = this.e;
+ double d8 = this.f;
+
+ if (d0 < 0.0D) {
+ d3 -= d0;
+ }
+
+ if (d0 > 0.0D) {
+ d6 -= d0;
+ }
+
+ if (d1 < 0.0D) {
+ d4 -= d1;
+ }
+
+ if (d1 > 0.0D) {
+ d7 -= d1;
+ }
+
+ if (d2 < 0.0D) {
+ d5 -= d2;
+ }
+
+ if (d2 > 0.0D) {
+ d8 -= d2;
+ }
+
+ return b(d3, d4, d5, d6, d7, d8);
+ }
+
+ public AxisAlignedBB b() {
+ return b(this.a, this.b, this.c, this.d, this.e, this.f);
+ }
+
+ public MovingObjectPosition a(Vec3D vec3d, Vec3D vec3d1) {
+ Vec3D vec3d2 = vec3d.a(vec3d1, this.a);
+ Vec3D vec3d3 = vec3d.a(vec3d1, this.d);
+ Vec3D vec3d4 = vec3d.b(vec3d1, this.b);
+ Vec3D vec3d5 = vec3d.b(vec3d1, this.e);
+ Vec3D vec3d6 = vec3d.c(vec3d1, this.c);
+ Vec3D vec3d7 = vec3d.c(vec3d1, this.f);
+
+ if (!this.a(vec3d2)) {
+ vec3d2 = null;
+ }
+
+ if (!this.a(vec3d3)) {
+ vec3d3 = null;
+ }
+
+ if (!this.b(vec3d4)) {
+ vec3d4 = null;
+ }
+
+ if (!this.b(vec3d5)) {
+ vec3d5 = null;
+ }
+
+ if (!this.c(vec3d6)) {
+ vec3d6 = null;
+ }
+
+ if (!this.c(vec3d7)) {
+ vec3d7 = null;
+ }
+
+ Vec3D vec3d8 = null;
+
+ if (vec3d2 != null && (vec3d8 == null || vec3d.b(vec3d2) < vec3d.b(vec3d8))) {
+ vec3d8 = vec3d2;
+ }
+
+ if (vec3d3 != null && (vec3d8 == null || vec3d.b(vec3d3) < vec3d.b(vec3d8))) {
+ vec3d8 = vec3d3;
+ }
+
+ if (vec3d4 != null && (vec3d8 == null || vec3d.b(vec3d4) < vec3d.b(vec3d8))) {
+ vec3d8 = vec3d4;
+ }
+
+ if (vec3d5 != null && (vec3d8 == null || vec3d.b(vec3d5) < vec3d.b(vec3d8))) {
+ vec3d8 = vec3d5;
+ }
+
+ if (vec3d6 != null && (vec3d8 == null || vec3d.b(vec3d6) < vec3d.b(vec3d8))) {
+ vec3d8 = vec3d6;
+ }
+
+ if (vec3d7 != null && (vec3d8 == null || vec3d.b(vec3d7) < vec3d.b(vec3d8))) {
+ vec3d8 = vec3d7;
+ }
+
+ if (vec3d8 == null) {
+ return null;
+ } else {
+ byte b0 = -1;
+
+ if (vec3d8 == vec3d2) {
+ b0 = 4;
+ }
+
+ if (vec3d8 == vec3d3) {
+ b0 = 5;
+ }
+
+ if (vec3d8 == vec3d4) {
+ b0 = 0;
+ }
+
+ if (vec3d8 == vec3d5) {
+ b0 = 1;
+ }
+
+ if (vec3d8 == vec3d6) {
+ b0 = 2;
+ }
+
+ if (vec3d8 == vec3d7) {
+ b0 = 3;
+ }
+
+ return new MovingObjectPosition(0, 0, 0, b0, vec3d8);
+ }
+ }
+
+ private boolean a(Vec3D vec3d) {
+ return vec3d == null ? false : vec3d.b >= this.b && vec3d.b <= this.e && vec3d.c >= this.c && vec3d.c <= this.f;
+ }
+
+ private boolean b(Vec3D vec3d) {
+ return vec3d == null ? false : vec3d.a >= this.a && vec3d.a <= this.d && vec3d.c >= this.c && vec3d.c <= this.f;
+ }
+
+ private boolean c(Vec3D vec3d) {
+ return vec3d == null ? false : vec3d.a >= this.a && vec3d.a <= this.d && vec3d.b >= this.b && vec3d.b <= this.e;
+ }
+
+ public void b(AxisAlignedBB axisalignedbb) {
+ this.a = axisalignedbb.a;
+ this.b = axisalignedbb.b;
+ this.c = axisalignedbb.c;
+ this.d = axisalignedbb.d;
+ this.e = axisalignedbb.e;
+ this.f = axisalignedbb.f;
+ }
+}
Oops, something went wrong.

0 comments on commit fef20f5

Please sign in to comment.