Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

First of all, you don't return some unnecessary error message as item name when something went wrong , you just return the unchanged unlocalized name. Your main problem is that you are not overriding the method. The for-loop you are using is completely useless as well as the check if the for loop's value is equal to the stack's item damage.

  • Author

thanks but i already found out the problem it had nothing to do with that it had to do with how i was trying to register my ItemBlock.

  • 2 weeks later...
  • Author

having a small problem did decompileWorkSpace, eclipe in the console whenenver i opened up eclipe and reran mine craft i started to get this error out of nowhere. 

 

 

[03:45:53] [Client thread/ERROR] [FML]: Caught exception from eot

java.lang.Error: Unresolved compilation problem:

 

at com.mightydanp.eot.core.handler.RegistryHandler.registerItemWithState(RegistryHandler.java:42) ~[bin/:?]

at com.mightydanp.eot.item.ModItems.init(ModItems.java:51) ~[bin/:?]

at com.mightydanp.eot.Eot.preInit(Eot.java:83) ~[bin/:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60]

at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:568) ~[forgeSrc-1.9.4-12.17.0.1963-PROJECT(EssenceofTech).jar:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:228) ~[forgeSrc-1.9.4-12.17.0.1963-PROJECT(EssenceofTech).jar:?]

at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:206) ~[forgeSrc-1.9.4-12.17.0.1963-PROJECT(EssenceofTech).jar:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:135) [LoadController.class:?]

at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:586) [Loader.class:?]

at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:249) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:475) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:384) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60]

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]

at GradleStart.main(GradleStart.java:26) [start/:?]

 

 

 

 

 

public static Item registerItemWithState(Item item, String prefixName, int numberOfItemStates, String[] suffixName) {

GameRegistry.register(item, new ResourceLocation(References.MODID, prefixName));

for (int i=0; i < numberOfItemStates; i++){

ModelLoader.setCustomModelResourceLocation(item, i, new ModelResourceLocation(References.MODID + ":" + prefixName + "_" + suffixName));

}

return item;

}

 

 

having a small problem did decompileWorkSpace, eclipe in the console whenenver i opened up eclipe and reran mine craft i started to get this error out of nowhere. 

 

 

[03:45:53] [Client thread/ERROR] [FML]: Caught exception from eot

java.lang.Error: Unresolved compilation problem:

 

at com.mightydanp.eot.core.handler.RegistryHandler.registerItemWithState(RegistryHandler.java:42) ~[bin/:?]

at com.mightydanp.eot.item.ModItems.init(ModItems.java:51) ~[bin/:?]

at com.mightydanp.eot.Eot.preInit(Eot.java:83) ~[bin/:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60]

at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:568) ~[forgeSrc-1.9.4-12.17.0.1963-PROJECT(EssenceofTech).jar:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:228) ~[forgeSrc-1.9.4-12.17.0.1963-PROJECT(EssenceofTech).jar:?]

at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:206) ~[forgeSrc-1.9.4-12.17.0.1963-PROJECT(EssenceofTech).jar:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:135) [LoadController.class:?]

at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:586) [Loader.class:?]

at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:249) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:475) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:384) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60]

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]

at GradleStart.main(GradleStart.java:26) [start/:?]

 

 

 

 

 

public static Item registerItemWithState(Item item, String prefixName, int numberOfItemStates, String[] suffixName) {

GameRegistry.register(item, new ResourceLocation(References.MODID, prefixName));

for (int i=0; i < numberOfItemStates; i++){

ModelLoader.setCustomModelResourceLocation(item, i, new ModelResourceLocation(References.MODID + ":" + prefixName + "_" + suffixName));

}

return item;

}

 

 

 

What errors is Eclipse throwing? That crash is caused by launching when Eclipse has detected errors.

  • Author

after i cleaned it i get error like so. if i run minecraft it wont load my mod at all.

 

 

java.lang.NullPointerException

at java.util.Hashtable.get(Unknown Source)

at org.eclipse.jdt.internal.core.OverflowingLRUCache.put(OverflowingLRUCache.java:320)

at org.eclipse.jdt.internal.core.BufferManager.addBuffer(BufferManager.java:58)

at org.eclipse.jdt.internal.core.CompilationUnit.openBuffer(CompilationUnit.java:1167)

at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:115)

at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:259)

at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:579)

at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:316)

at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:302)

at org.eclipse.jdt.internal.core.CompilationUnit.getSourceRange(CompilationUnit.java:911)

at org.eclipse.jdt.internal.ui.javaeditor.selectionactions.GoToNextPreviousMemberAction.update(GoToNextPreviousMemberAction.java:89)

at org.eclipse.jdt.internal.ui.javaeditor.selectionactions.GoToNextPreviousMemberAction.<init>(GoToNextPreviousMemberAction.java:68)

at org.eclipse.jdt.internal.ui.javaeditor.selectionactions.GoToNextPreviousMemberAction.newGoToNextMemberAction(GoToNextPreviousMemberAction.java:55)

at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.createActions(JavaEditor.java:2759)

at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.createActions(CompilationUnitEditor.java:1046)

at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3576)

at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:54)

at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:447)

at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.createPartControl(JavaEditor.java:3125)

at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.createPartControl(CompilationUnitEditor.java:1502)

at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:151)

at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:99)

at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:341)

at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)

at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:898)

at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:879)

at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:121)

at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:345)

at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:264)

at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)

at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:104)

at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:73)

at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:55)

at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:129)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:971)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:640)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:746)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$0(PartRenderingEngine.java:717)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(PartRenderingEngine.java:711)

at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:695)

at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$1.handleEvent(PartServiceImpl.java:99)

at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:40)

at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:186)

at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:145)

at org.eclipse.swt.widgets.Display.syncExec(Display.java:4761)

at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:211)

at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:36)

at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)

at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)

at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)

at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)

at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)

at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)

at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)

at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)

at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:85)

at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:59)

at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)

at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)

at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:494)

at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:458)

at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:724)

at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:396)

at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1166)

at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3234)

at org.eclipse.ui.internal.WorkbenchPage.access$25(WorkbenchPage.java:3149)

at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:3131)

at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)

at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3126)

at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3090)

at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3080)

at org.eclipse.ui.ide.IDE.openEditor(IDE.java:541)

at org.eclipse.ui.ide.IDE.openEditor(IDE.java:500)

at org.eclipse.ui.ide.IDE.openEditor(IDE.java:1113)

at org.eclipse.ui.internal.views.markers.ExtendedMarkersView.openMarkerInEditor(ExtendedMarkersView.java:1664)

at org.eclipse.ui.internal.views.markers.ExtendedMarkersView.openSelectedMarkers(ExtendedMarkersView.java:1163)

at org.eclipse.ui.internal.views.markers.ExtendedMarkersView$6.open(ExtendedMarkersView.java:571)

at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)

at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:854)

at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)

at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)

at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:851)

at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1168)

at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1275)

at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:278)

at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:272)

at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:313)

at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4362)

at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113)

at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4180)

at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3769)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)

at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)

at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)

at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:654)

at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)

at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:598)

at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)

at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)

at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)

at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)

at org.eclipse.equinox.launcher.Main.run(Main.java:1515)

 

 

 

 

 

java.lang.NullPointerException

at java.util.Hashtable.get(Unknown Source)

at org.eclipse.jdt.internal.core.OverflowingLRUCache.put(OverflowingLRUCache.java:320)

at org.eclipse.jdt.internal.core.BufferManager.addBuffer(BufferManager.java:58)

at org.eclipse.jdt.internal.core.CompilationUnit.openBuffer(CompilationUnit.java:1167)

at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:115)

at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:259)

at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:579)

at org.eclipse.jdt.internal.core.BecomeWorkingCopyOperation.executeOperation(BecomeWorkingCopyOperation.java:39)

at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:729)

at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:789)

at org.eclipse.jdt.internal.core.CompilationUnit.becomeWorkingCopy(CompilationUnit.java:99)

at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider.createFileInfo(CompilationUnitDocumentProvider.java:1001)

at org.eclipse.ui.editors.text.TextFileDocumentProvider.connect(TextFileDocumentProvider.java:478)

at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider.connect(CompilationUnitDocumentProvider.java:1244)

at org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(AbstractTextEditor.java:4233)

at org.eclipse.ui.texteditor.StatusTextEditor.doSetInput(StatusTextEditor.java:237)

at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.doSetInput(AbstractDecoratedTextEditor.java:1480)

at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.internalDoSetInput(JavaEditor.java:2590)

at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.doSetInput(JavaEditor.java:2563)

at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSetInput(CompilationUnitEditor.java:1392)

at org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:3220)

at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:463)

at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:371)

at org.eclipse.ui.internal.WorkbenchWindow$14.run(WorkbenchWindow.java:2156)

at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)

at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2152)

at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3238)

at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3265)

at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:361)

at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:319)

at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)

at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:898)

at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:879)

at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:121)

at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:345)

at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:264)

at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)

at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:104)

at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:73)

at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:55)

at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:129)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:971)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:640)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:746)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$0(PartRenderingEngine.java:717)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(PartRenderingEngine.java:711)

at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:695)

at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$1.handleEvent(PartServiceImpl.java:99)

at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:40)

at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:186)

at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:145)

at org.eclipse.swt.widgets.Display.syncExec(Display.java:4761)

at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:211)

at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:36)

at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)

at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)

at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)

at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)

at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)

at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)

at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)

at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)

at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:85)

at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:59)

at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)

at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)

at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:494)

at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:458)

at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:724)

at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:396)

at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1166)

at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3234)

at org.eclipse.ui.internal.WorkbenchPage.access$25(WorkbenchPage.java:3149)

at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:3131)

at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)

at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3126)

at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3090)

at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3080)

at org.eclipse.ui.ide.IDE.openEditor(IDE.java:541)

at org.eclipse.ui.ide.IDE.openEditor(IDE.java:500)

at org.eclipse.ui.ide.IDE.openEditor(IDE.java:1113)

at org.eclipse.ui.internal.views.markers.ExtendedMarkersView.openMarkerInEditor(ExtendedMarkersView.java:1664)

at org.eclipse.ui.internal.views.markers.ExtendedMarkersView.openSelectedMarkers(ExtendedMarkersView.java:1163)

at org.eclipse.ui.internal.views.markers.ExtendedMarkersView$6.open(ExtendedMarkersView.java:571)

at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)

at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:854)

at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)

at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)

at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:851)

at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1168)

at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1275)

at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:278)

at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:272)

at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:313)

at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4362)

at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113)

at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4180)

at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3769)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)

at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)

at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)

at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:654)

at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)

at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:598)

at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)

at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)

at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)

at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)

at org.eclipse.equinox.launcher.Main.run(Main.java:1515)

 

 

 

 

 

 

java.lang.reflect.InvocationTargetException

at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:110)

at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)

Caused by: Java Model Exception: Java Model Status [build path contains duplicate entry: 'org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8' for project 'MDKExample']

at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:785)

at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:3097)

at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:3059)

at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:3112)

at org.eclipse.jdt.internal.ui.text.correction.ReorgCorrectionsSubProcessor$ChangeToRequiredCompilerCompliance.updateClasspath(ReorgCorrectionsSubProcessor.java:529)

at org.eclipse.jdt.internal.ui.text.correction.ReorgCorrectionsSubProcessor$ChangeToRequiredCompilerCompliance.updateJRE(ReorgCorrectionsSubProcessor.java:467)

at org.eclipse.jdt.internal.ui.text.correction.ReorgCorrectionsSubProcessor$ChangeToRequiredCompilerCompliance.run(ReorgCorrectionsSubProcessor.java:430)

at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:39)

at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:729)

at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2241)

at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:5409)

at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:106)

... 1 more

Root exception:

Java Model Exception: Java Model Status [build path contains duplicate entry: 'org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8' for project 'MDKExample']

at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:785)

at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:3097)

at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:3059)

at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:3112)

at org.eclipse.jdt.internal.ui.text.correction.ReorgCorrectionsSubProcessor$ChangeToRequiredCompilerCompliance.updateClasspath(ReorgCorrectionsSubProcessor.java:529)

at org.eclipse.jdt.internal.ui.text.correction.ReorgCorrectionsSubProcessor$ChangeToRequiredCompilerCompliance.updateJRE(ReorgCorrectionsSubProcessor.java:467)

at org.eclipse.jdt.internal.ui.text.correction.ReorgCorrectionsSubProcessor$ChangeToRequiredCompilerCompliance.run(ReorgCorrectionsSubProcessor.java:430)

at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:39)

at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:729)

at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2241)

at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:5409)

at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:106)

at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)

 

 

 

  • Author

i decided to update it to 1.10 and everything went away . but i do have a question im using ItemEssenceOre::new and for it to work i have to change the recompile in eclipse to 1.8 or higher i think it was java se or something like that. but will that effect anything ?

RegistryHandler.registerBlockState(essenceStone, BlockStrings.ESSENCESTONE_NAME, ItemEssenceOre::new, 5, essenceStoneBlockStates);

       

  • Author

ublic static <BLOCK extends Block> BLOCK registerBlockState(BLOCK block, String prefixName, @Nullable Function<BLOCK, ItemBlock> itemFactory, int numberOfBlockStates, String[] suffixName) {

GameRegistry.register(block, new ResourceLocation(References.MODID, prefixName));

if (itemFactory != null) {

final ItemBlock itemBlock = itemFactory.apply(block);

 

GameRegistry.register(itemBlock.setRegistryName(block.getRegistryName()));

}

 

for (int i=0; i < numberOfBlockStates; i++){

ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(block), i, new ModelResourceLocation(References.MODID + ":" + prefixName + "_" + suffixName));

}

BLOCKS.add(block);

return block;

}

  • Author

i loaded it up after fixed some small code and i just made this code so that my eot inventory would work.

 

 

23 public static InventoryEotInventory getPlayerBaubles(EntityPlayer player) {

24 if (!playerEotInventory.containsKey(player.getDisplayNameString())) {

25 InventoryEotInventory inventory = new InventoryEotInventory(player);

26 playerEotInventory.put(player.getDisplayNameString(), inventory);

27 }

28 return playerEotInventory.get(player.getDisplayNameString());

29 }

 

 

 

this error is related to the code

 

 

at java.util.concurrent.ConcurrentHashMap.get(PlayerHandler.java:28)

at java.util.concurrent.ConcurrentHashMap.containsKey(PlayerHandler.java:24)

at net.minecraftforge.fml.common.eventhandler.EventBus.register(EventBus.java:47)

at com.mightydanp.eot.core.proxy.ClientProxy.registerKeyBindings(ClientProxy.java:50)

at com.mightydanp.eot.Eot.init(Eot.java:109)

 

 

  • Author

I looked at it i couldnt really understand. I mean it says use this on this but ot never really gives examples just code fragments

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.