Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Creating a new java file in Intellij makes an empty file


Recommended Posts

Probably noob question. When I updated to 1.16.3 latest, created a new folder and rerun the build programs and create a new java file, all it shows is an empty file. I never experienced something like this modding in 1.12. When I create something in there it gives the package name, the class name, and a ready constructor. 

Link to post
Share on other sites
2 hours ago, Kiljaeden053 said:

created a new folder and rerun the build programs and create a new java file, all it shows is an empty file

If you only copied over the relevant files from a different project, then those source folders won't exist normally. You will need to create them manually and then rerun your gradle commands to tell everything that "hey, I exist now".

Edited by ChampionAsh5357
  • Like 1
  • Thanks 1
Link to post
Share on other sites

Also here's the log fren

CUsers----DesktopMDKHeaven's Wrath1.16.3gradlew build
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon httpsdocs.gradle.org4.10.3userguidegradle_daemon.html.
Daemon will be stopped at the end of the build stopping after processing

 Configure project 
Java 15 JVM 15+36-1562(Oracle Corporation) Arch amd64
New Dep net.minecraftforgeforge1.16.3-34.1.0_mapped_snapshot_20200514-1.16

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See httpsdocs.gradle.org4.10.3userguidecommand_line_interface.html#seccommand_line_warnings

BUILD SUCCESSFUL in 13s
7 actionable tasks 3 executed, 4 up-to-date
CUsersJexelDesktopMDKHeaven's Wrath1.16.3

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • ---- Minecraft Crash Report ---- WARNING: coremods are present:   AutoCorrectTweaker (Autocorrect-1.1 (1.8.9).jar)   LoadingPlugin (ReplayMod.jar)   TNTTimerTweaker (TNT Time-1.0 (1.8.9).jar)   FMLLoadingPlugin (MemoryFix.jar)   FMLLoadingPlugin (Motion Blur-2.0 (1.8.9).jar)   PatcherTweaker (Patcher-1.5.1 (1.8.9).jar)   FMLLoadingPlugin (Keystrokes-8.0.2 (1.8.9).jar)   ModTweaker (Patcher-1.5.1 (1.8.9).jar) Contact their authors BEFORE contacting forge // Why did you do that? Time: 6/15/21 9:16 AM Description: Unexpected error java.lang.NullPointerException: Unexpected error     at me.semx11.autotip.event.impl.EventClientTick.onClientTick(EventClientTick.java:23)     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_59_EventClientTick_onClientTick_ClientTickEvent.invoke(.dynamic)     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:49)     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:140)     at net.minecraftforge.fml.common.FMLCommonHandler.onPostClientTick(FMLCommonHandler.java:336)     at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:2151)     at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1024)     at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:349)     at net.minecraft.client.main.Main.main(SourceFile:124)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:497)     at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)     at net.minecraft.launchwrapper.Launch.main(Launch.java:28) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details:     Minecraft Version: 1.8.9     Operating System: Windows 8.1 (amd64) version 6.3     CPU: 4x Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz     Java Version: 1.8.0_51, Oracle Corporation     Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation     Memory: 909806976 bytes (867 MB) / 1543503872 bytes (1472 MB) up to 4160749568 bytes (3968 MB)     JVM Flags: 8 total; -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M -Xmx3945m -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump     IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0     FML: MCP 9.19 Powered by Forge 11.15.1.2318 Optifine OptiFine_1.8.9_HD_U_I7 32 mods loaded, 32 mods active     States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored     UCHIJA    mcp{9.19} [Minecraft Coder Pack] (minecraft.jar)      UCHIJA    FML{8.0.99.99} [Forge Mod Loader] (forge-1.8.9-11.15.1.2318-1.8.9.jar)      UCHIJA    Forge{11.15.1.2318} [Minecraft Forge] (forge-1.8.9-11.15.1.2318-1.8.9.jar)      UCHIJA    nick_hider{3.1} [Nick Hider] (NickHider.jar)      UCHIJA    replaymod-compat{1.8.9-2.0.1} [Replay Mod - Compatibility] (ReplayMod.jar)      UCHIJA    replaymod-replay{1.8.9-2.0.1} [Replay Mod - Replay] (ReplayMod.jar)      UCHIJA    replaymod{1.8.9-2.0.1} [Replay Mod] (ReplayMod.jar)      UCHIJA    replaymod-render{1.8.9-2.0.1} [Replay Mod - Render] (ReplayMod.jar)      UCHIJA    replaymod-editor{1.8.9-2.0.1} [Replay Mod - Replay Editor] (ReplayMod.jar)      UCHIJA    replaymod-extras{1.8.9-2.0.1} [Replay Mod - Extras] (ReplayMod.jar)      UCHIJA    replaymod-online{1.8.9-2.0.1} [Replay Mod - Online] (ReplayMod.jar)      UCHIJA    replaymod-recording{1.8.9-2.0.1} [Replay Mod - Recording] (ReplayMod.jar)      UCHIJA    replaymod-simplepathing{1.8.9-2.0.1} [Replay Mod - Simple Pathing] (ReplayMod.jar)      UCHIJA    modcore{0.1.47} [ModCore] (Sk1er Modcore-0.1.47 (1.8.9).jar)      UCHIJA    autocorrect{1.1} [AutoCorrect] (Autocorrect-1.1 (1.8.9).jar)      UCHIJA    autogg{2.0.4} [Auto GG] (AutoGG.jar)      UCHIJA    autotip{3.0} [Autotip] (Autotip.jar)      UCHIJA    by{0.1} [com.behindyou.mod.BehindYou! Mod] (BehindYou.jar)      UCHIJA    blockoverlay{3.0} [Block Overlay] (BlockOverlay.jar)      UCHIJA    keystrokesmod{8.0.2} [KeystrokesMod] (Keystrokes-8.0.2 (1.8.9).jar)      UCHIJA    memoryfix{0.3} [MemoryFix] (MemoryFix.jar)      UCHIJA    motionblurmod{2.0} [Motion Blur] (Motion Blur-2.0 (1.8.9).jar)      UCHIJA    namehistory{1.1} [Player Name History Checker] (NameHistory.jar)      UCHIJA    animations{6.7} [Orange's 1.7 Animations] (Orange_s1.7Animations.jar)      UCHIJA    orangesimplemod{1.0} [orangesimplemod] (Orange_sSimpleMods.jar)      UCHIJA    Particle_Mod{6.9} [Particle_Mod] (ParticleMod.jar)      UCHIJA    patcher{1.5.1} [Patcher] (Patcher-1.5.1 (1.8.9).jar)      UCHIJA    simpleafk{1.0} [Simple AFK] (SimpleAfk.jar)      UCHIJA    tnttime{1.0} [TNT Time] (TNT Time-1.0 (1.8.9).jar)      UCHIJA    publictogglechat{2.1.0} [§6Hypixel §7-§a ToggleChat] (ToggleChat.jar)      UCHIJA    enhancements{7.7} [Vanilla Enhancements] (VanillaEnhancements.jar)      UCHIJA    fw{1.3.0} [Fullscreen Windowed] (WindowedFullscreen.jar)      Loaded coremods (and transformers):  AutoCorrectTweaker (Autocorrect-1.1 (1.8.9).jar)   club.sk1er.autocorrect.tweaker.ClassTransformer LoadingPlugin (ReplayMod.jar)    TNTTimerTweaker (TNT Time-1.0 (1.8.9).jar)   club.sk1er.mods.tnttimer.tweaker.ClassTransformer FMLLoadingPlugin (MemoryFix.jar)   io.prplz.memoryfix.ClassTransformer FMLLoadingPlugin (Motion Blur-2.0 (1.8.9).jar)
    • These things you've said interferes in the problem?
    • (1) do not use OnlyIn pretty much ever, and never on methods you are creating whole cloth. (2) your getType method is never called (3) your useOn method does a whole lotta nuthin (4) have you looked at the vanilla spawn egg? (5) why are you not extending the vanilla spawn egg?
    • I'm from Brazil, and I'm used to code in portuguese. Like "items" in english is "itens" in portguese. Here it is the Essence class, and the EssenceItem class. I created 2 different classes to separete and simplify some things.   
    • ...and this class?   Also, you know it's spelled "items" with an M right?
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.