GIANT ERROR NEED HELP FAST

Discussion in 'Plugin Development' started by immensebuttpain, Aug 5, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    immensebuttpain

    Error message
    Code:text
    1. ---- Minecraft Crash Report ----
    2. // I let you down. Sorry :(
    3.  
    4. Time: 8/5/14 3:41 AM
    5. Description: Ticking block entity
    6.  
    7. java.lang.Error: Unresolved compilation problems:
    8. Cannot make a static reference to the non-static method a() from the type AxisAlignedBB
    9. Cannot invoke a(int, int, int, int, int, int) on the primitive type double
    10.  
    11. at net.brord.plugins.fearfactions.privatebeacon.InjectedTileEntityBeacon.h(InjectedTileEntityBeacon.java:52)
    12. at net.minecraft.server.v1_7_R3.World.tickEntities(World.java:1330)
    13. at net.minecraft.server.v1_7_R3.WorldServer.tickEntities(WorldServer.java:481)
    14. at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:649)
    15. at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:260)
    16. at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:558)
    17. at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:469)
    18. at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628)
    19.  
    20.  
    21. A detailed walkthrough of the error, its code path and all known details is as follows:
    22. ---------------------------------------------------------------------------------------
    23.  
    24. -- Head --
    25. Stacktrace:
    26. at net.brord.plugins.fearfactions.privatebeacon.InjectedTileEntityBeacon.h(InjectedTileEntityBeacon.java:52)
    27.  
    28. -- Block entity being ticked --
    29. Details:
    30. Name: Beacon // net.brord.plugins.fearfactions.privatebeacon.InjectedTileEntityBeacon
    31. Block type: ID #138 (tile.beacon // net.brord.plugins.fearfactions.privatebeacon.InjectedBlockBeacon)
    32. Block data value: 0 / 0x0 / 0b0000
    33. Block location: World: (-189,64,303), Chunk: (at 3,4,15 in -12,18; contains blocks -192,0,288 to -177,255,303), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
    34. Actual block type: ID #138 (tile.beacon // net.brord.plugins.fearfactions.privatebeacon.InjectedBlockBeacon)
    35. Actual block data value: 0 / 0x0 / 0b0000
    36. Stacktrace:
    37. at net.minecraft.server.v1_7_R3.World.tickEntities(World.java:1330)
    38. at net.minecraft.server.v1_7_R3.WorldServer.tickEntities(WorldServer.java:481)
    39.  
    40. -- Affected level --
    41. Details:
    42. Level name: world
    43. All players: 2 total; [EntityPlayer['bionicangel1098'/250, l='world', x=-187.28, y=64.00, z=305.43](bionicangel1098 at -187.27603598734942,64.0,305.4276580823314), EntityPlayer['xBRENDYHD'/2450, l='world', x=-186.70, y=64.72, z=300.67](xBRENDYHD at -186.69882547529414,64.724284105179,300.6687118475452)]
    44. Chunk stats: ServerChunkCache: 462 Drop: 0
    45. Level seed: -6224407590602017359
    46. Level generator: ID 00 - default, ver 1. Features enabled: true
    47. Level generator options:
    48. Level spawn location: World: (-195,64,277), Chunk: (at 13,4,5 in -13,17; contains blocks -208,0,272 to -193,255,287), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
    49. Level time: 26776 game time, 35358 day time
    50. Level dimension: 0
    51. Level storage version: 0x04ABD - Anvil
    52. Level weather: Rain time: 106007 (now: false), thunder time: 51444 (now: false)
    53. Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false
    54. Stacktrace:
    55. at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:649)
    56. at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:260)
    57. at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:558)
    58. at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:469)
    59. at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628)
    60.  
    61. -- System Details --
    62. Details:
    63. Minecraft Version: 1.7.9
    64. Operating System: Windows 7 (amd64) version 6.1
    65. Java Version: 1.7.0_21, Oracle Corporation
    66. Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    67. Memory: 173542800 bytes (165 MB) / 406847488 bytes (388 MB) up to 954466304 bytes (910 MB)
    68. JVM Flags: 1 total; -Xmx1024M
    69. AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    70. IntCache: cache: 1, tcache: 1, allocated: 12, tallocated: 94
    71. CraftBukkit Information:
    72. Running: CraftBukkit version git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks (MC: 1.7.9) (Implementing API version 1.7.9-R0.2) true
    73. Plugins: { mcore v7.2.1 com.massivecraft.mcore.MCore [Cayorion], Factions v2.4.0 com.massivecraft.factions.Factions [Cayorion, Brettflan], FearFactions v0.2 net.brord.plugins.fearfactions.FearFactions [ImmenseButtPain],}
    74. Warnings: DEFAULT
    75. Threads: { WAITING pool-4-thread-3: [sun.misc.Unsafe.park(Native Method), java.util.concurrent.locks.LockSupport.park(LockSupport.java:186), java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043), java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442), java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068), java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130), java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615), java.lang.Thread.run(Thread.java:722)], RUNNABLE Signal Dispatcher: [], RUNNABLE Netty IO #2: [sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method), sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(WindowsSelectorImpl.java:295), sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(WindowsSelectorImpl.java:277), sun.nio.ch.WindowsSelectorImpl.doSelect(WindowsSelectorImpl.java:158), sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:87), sun.nio.ch.SelectorImpl.select(SelectorImpl.java:98), net.minecraft.util.io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:591), net.minecraft.util.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:301), net.minecraft.util.io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101), java.lang.Thread.run(Thread.java:722)], RUNNABLE Attach Listener: [], WAITING pool-4-thread-4: [sun.misc.Unsafe.park(Native Method), java.util.concurrent.locks.LockSupport.park(LockSupport.java:186), java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043), java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442), java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068), java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130), java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615), java.lang.Thread.run(Thread.java:722)], WAITING pool-8-thread-3: [sun.misc.Unsafe.park(Native Method), java.util.concurrent.locks.LockSupport.park(LockSupport.java:186), java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043), java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442), java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068), java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130), java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615), java.lang.Thread.run(Thread.java:722)], WAITING Finalizer: [java.lang.Object.wait(Native Method), java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:135), java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:151), java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:189)], WAITING pool-8-thread-4: [sun.misc.Unsafe.park(Native Method), java.util.concurrent.locks.LockSupport.park(LockSupport.java:186), java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043), java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442), java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068), java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130), java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615), java.lang.Thread.run(Thread.java:722)], RUNNABLE DestroyJavaVM: [], WAITING pool-8-thread-1: [sun.misc.Unsafe.park(Native Method), java.util.concurrent.locks.LockSupport.park(LockSupport.java:186), java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043), java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442), java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068), java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130), java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615), java.lang.Thread.run(Thread.java:722)], RUNNABLE Netty IO #0: [sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method), sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(WindowsSelectorImpl.java:295), sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(WindowsSelectorImpl.java:277), sun.nio.ch.WindowsSelectorImpl.doSelect(WindowsSelectorImpl.java:158), sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:87), sun.nio.ch.SelectorImpl.select(SelectorImpl.java:98), net.minecraft.util.io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:591), net.minecraft.util.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:301), net.minecraft.util.io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101), java.lang.Thread.run(Thread.java:722)], TIMED_WAITING pool-3-thread-2: [sun.misc.Unsafe.park(Native Method), java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226), java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:460), java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:359), java.util.concurrent.SynchronousQueue.poll(SynchronousQueue.java:942), java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068), java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130), java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615), java.lang.Thread.run(Thread.java:722)], TIMED_WAITING Snooper Timer: [java.lang.Object.wait(Native Method), java.util.TimerThread.mainLoop(Timer.java:552), java.util.TimerThread.run(Timer.java:505)], WAITING Chunk I/O Executor Thread-1: [sun.misc.Unsafe.park(Native Method), java.util.concurrent.locks.LockSupport.park(LockSupport.java:186), java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043), java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442), java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068), java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130), java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615), java.lang.Thread.run(Thread.java:722)], TIMED_WAITING MStore ExamineThread: [java.lang.Thread.sleep(Native Method), com.massivecraft.mcore.store.ExamineThread.run(ExamineThread.java:55)], WAITING Thread-5: [sun.misc.Unsafe.park(Native Method), java.util.concurrent.locks.LockSupport.park(LockSupport.java:186), java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043), java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442), net.minecraft.util.com.mojang.util.QueueLogAppender.getNextLogEvent(QueueLogAppender.java:73), org.bukkit.craftbukkit.v1_7_R3.util.TerminalConsoleWriterThread.run(TerminalConsoleWriterThread.java:25), java.lang.Thread.run(Thread.java:722)], TIMED_WAITING Server Infinisleeper: [java.lang.Thread.sleep(Native Method), net.minecraft.server.v1_7_R3.ThreadSleepForever.run(SourceFile:65)], WAITING pool-8-thread-2: [sun.misc.Unsafe.park(Native Method), java.util.concurrent.locks.LockSupport.park(LockSupport.java:186), java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043), java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442), java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068), java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130), java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615), java.lang.Thread.run(Thread.java:722)], RUNNABLE Server console handler: [org.fusesource.jansi.internal.Kernel32._getch(Native Method), org.fusesource.jansi.internal.WindowsSupport.readByte(WindowsSupport.java:46), org.bukkit.craftbukkit.libs.jline.WindowsTerminal.readByte(WindowsTerminal.java:184), org.bukkit.craftbukkit.libs.jline.WindowsTerminal.access$000(WindowsTerminal.java:53), org.bukkit.craftbukkit.libs.jline.WindowsTerminal$1.read(WindowsTerminal.java:151), java.io.FilterInputStream.read(FilterInputStream.java:83), org.bukkit.craftbukkit.libs.jline.console.ConsoleReader$1.read(ConsoleReader.java:167), org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:267), org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:204), org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readCharacter(ConsoleReader.java:995), org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readLine(ConsoleReader.java:1167), net.minecraft.server.v1_7_R3.ThreadCommandReader.run(ThreadCommandReader.java:32)], WAITING pool-4-thread-1: [sun.misc.Unsafe.park(Native Method), java.util.concurrent.locks.LockSupport.park(LockSupport.java:186), java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043), java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442), java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068), java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130), java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615), java.lang.Thread.run(Thread.java:722)], RUNNABLE Netty IO #3: [sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method), sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(WindowsSelectorImpl.java:295), sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(WindowsSelectorImpl.java:277), sun.nio.ch.WindowsSelectorImpl.doSelect(WindowsSelectorImpl.java:158), sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:87), sun.nio.ch.SelectorImpl.select(SelectorImpl.java:98), net.minecraft.util.io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:591), net.minecraft.util.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:301), net.minecraft.util.io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101), java.lang.Thread.run(Thread.java:722)], WAITING Reference Handler: [java.lang.Object.wait(Native Method), java.lang.Object.wait(Object.java:503), java.lang.ref.Reference$ReferenceHandler.run(Reference.java:133)], RUNNABLE Netty IO #1: [sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method), sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(WindowsSelectorImpl.java:295), sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(WindowsSelectorImpl.java:277), sun.nio.ch.WindowsSelectorImpl.doSelect(WindowsSelectorImpl.java:158), sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:87), sun.nio.ch.SelectorImpl.select(SelectorImpl.java:98), net.minecraft.util.io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:591), net.minecraft.util.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:301), net.minecraft.util.io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101), java.lang.Thread.run(Thread.java:722)], WAITING pool-4-thread-2: [sun.misc.Unsafe.park(Native Method), java.util.concurrent.locks.LockSupport.park(LockSupport.java:186), java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043), java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442), java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068), java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130), java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615), java.lang.Thread.run(Thread.java:722)], RUNNABLE Server thread: [java.lang.Thread.dumpThreads(Native Method), java.lang.Thread.getAllStackTraces(Thread.java:1618), org.bukkit.craftbukkit.v1_7_R3.CraftCrashReport.call(CraftCrashReport.java:28), net.minecraft.server.v1_7_R3.CrashReportSystemDetails.a(SourceFile:74), net.minecraft.server.v1_7_R3.CrashReport.h(CrashReport.java:45), net.minecraft.server.v1_7_R3.CrashReport.<init>(CrashReport.java:33), net.minecraft.server.v1_7_R3.CrashReport.a(CrashReport.java:230), net.minecraft.server.v1_7_R3.World.tickEntities(World.java:1332), net.minecraft.server.v1_7_R3.WorldServer.tickEntities(WorldServer.java:481), net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:649), net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:260), net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:558), net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:469), net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628)], TIMED_WAITING File IO Thread: [java.lang.Thread.sleep(Native Method), net.minecraft.server.v1_7_R3.FileIOThread.b(SourceFile:44), net.minecraft.server.v1_7_R3.FileIOThread.run(SourceFile:23), java.lang.Thread.run(Thread.java:722)],}
    76. Recent tasks from 13018-13048{mcore:com.massivecraft.mcore.util.IdUtil@13034,}
    77. Profiler Position: N/A (disabled)
    78. Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    79. Player Count: 2 / 20; [EntityPlayer['bionicangel1098'/250, l='world', x=-187.28, y=64.00, z=305.43](bionicangel1098 at -187.27603598734942,64.0,305.4276580823314), EntityPlayer['xBRENDYHD'/2450, l='world', x=-186.70, y=64.72, z=300.67](xBRENDYHD at -186.69882547529414,64.724284105179,300.6687118475452)]
    80. Is Modded: Definitely; Server brand changed to 'CraftBukkit'
    81. Type: Dedicated Server (map_server.txt)

    Code:
    Code:java
    1. package net.brord.plugins.fearfactions.privatebeacon;
    2.  
    3. import net.brord.plugins.fearfactions.util.FactionsUtil;
    4. import net.minecraft.server.v1_7_R3.AxisAlignedBB;
    5. import net.minecraft.server.v1_7_R3.EntityPlayer;
    6. import net.minecraft.server.v1_7_R3.MobEffect;
    7. import net.minecraft.server.v1_7_R3.TileEntity;
    8. import net.minecraft.server.v1_7_R3.TileEntityBeacon;
    9.  
    10. import java.lang.reflect.Field;
    11. import java.lang.reflect.Method;
    12. import java.util.Iterator;
    13. import java.util.List;
    14. import java.util.Map;
    15.  
    16. import org.bukkit.Location;
    17.  
    18. import com.massivecraft.factions.entity.BoardColls;
    19. import com.massivecraft.factions.entity.Faction;
    20. import com.massivecraft.factions.entity.UPlayer;
    21. import com.massivecraft.mcore.ps.PS;
    22.  
    23. public class InjectedTileEntityBeacon extends TileEntityBeacon {
    24. private static Method UPDATE_STATE;
    25. private static Field BEACON_ACTIVE;
    26.  
    27. public InjectedTileEntityBeacon() {
    28. super();
    29. }
    30.  
    31. @Override
    32. @SuppressWarnings("unchecked")
    33. public void h() {
    34. try {
    35. if (this.world.getTime() % 80L == 0L) {
    36. UPDATE_STATE.invoke(this);
    37. boolean result = BEACON_ACTIVE.getBoolean(this);
    38.  
    39. if (result && this.l() > 0 && !this.world.isStatic && this.j() > 0 /* effect count > 0 */) {
    40.  
    41. double doubleThing = (double) (this.l() * 10 + 10);
    42. byte byteThing = 0;
    43.  
    44. if (this.l() >= 4 &&
    45. this.j() == this.k()) {
    46. byteThing = 1;
    47. }
    48.  
    49. **AxisAlignedBB aaBB = AxisAlignedBB.a().a(x, y, z, x + 1, y + 1, z + 1).grow(doubleThing, doubleThing, doubleThing);**
    50. aaBB.e = this.world.getHeight();
    51. List<EntityPlayer> players = this.world.a(EntityPlayer.class, aaBB);
    52.  
    53. Faction f = BoardColls.get().getFactionAt(PS.valueOf(new Location(world.getWorld(), x, y, z)));
    54. UPlayer up;
    55.  
    56. for (Iterator<EntityPlayer> itr = players.iterator(); itr.hasNext();) {
    57. EntityPlayer player = itr.next();
    58.  
    59. up = FactionsUtil.getPlayer(player.getBukkitEntity());
    60. if (up == null || (f != null && !up.hasFaction()) || (f != null && !f.getName().equals(up.getFactionName()))) {
    61. itr.remove();
    62. } else {
    63. player.addEffect(new MobEffect(this.j(), 480, byteThing, true));
    64. }
    65. }
    66.  
    67. if (this.l() >= 4 &&
    68. this.j() != this.k() &&
    69. this.k() > 0) {
    70. for (EntityPlayer player : players) {
    71. player.addEffect(new MobEffect(this.k(), 180, 0, true));
    72. }
    73. }
    74. }
    75. }
    76. } catch (Throwable e) {
    77. e.printStackTrace();
    78. }
    79. }
    80.  
    81. @SuppressWarnings("unchecked")
    82. public static void inject() throws Throwable {
    83. UPDATE_STATE = TileEntityBeacon.class.getDeclaredMethod("y"); UPDATE_STATE.setAccessible(true);
    84. BEACON_ACTIVE = TileEntityBeacon.class.getDeclaredField("k"); BEACON_ACTIVE.setAccessible(true);
    85.  
    86. Field nameMapField = TileEntity.class.getDeclaredField("i"); nameMapField.setAccessible(true);
    87. Field classMapField = TileEntity.class.getDeclaredField("j"); classMapField.setAccessible(true);
    88.  
    89. ((Map<String, Class<InjectedTileEntityBeacon>>) nameMapField.get(null)).put("Beacon", InjectedTileEntityBeacon.class);
    90. ((Map<Class<InjectedTileEntityBeacon>, String>) classMapField.get(null)).put(InjectedTileEntityBeacon.class, "Beacon");
    91. }
    92. }

    Bold is where the error is at the error is:
    Cannot invoke a(int, int, int, int, int, int) on the primitive type double

    http://i.gyazo.com/181cf962a198197bcf9fb455c0f2a502.png

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  2. Offline

    _LB

    AxisAlignedBB.a() is not static according to the error.
     
  3. Offline

    immensebuttpain

    _LB
    How would i fix this?
     
  4. Offline

    _LB

  5. Offline

    immensebuttpain

    _LB
    What would i put the instance toward.. like how would i do it exactly.
     
  6. Offline

    _LB

    You should read some Java tutorials to learn what the word "instance" means ;)
     
  7. Offline

    immensebuttpain

    _LB
    ExampleClass example = new ExampleClass(this);
     
  8. immensebuttpain But, chances are, it'll break if you just go and make an instance willy nilly. Otherwise the method would probably be static. You'd need to get the instance from somewhere.

    The problem with NMS is that it's obfuscated and changes, every update means that a() could do something completely different the next time you use it. In order to use NMS safely, you have to actually understand NMS. If you need help with this specific thing, then that's a pretty good hint you shouldn't be using this thing.
     
  9. Offline

    xize

    you may want to use reflection uopen the AxisAligned instance to get it, I probably not recommend to use it as a new instance, and anyways why are you using AxisAligned?, are you trying to change the hitboxes of a player/entitys?

    of course I don't know much about AxisAligned or if its ment for hitboxes anyways but I know that one could be really tricky to work with my sampler already said that it has a high rate of cpu/memory envolved.
     
Thread Status:
Not open for further replies.

Share This Page