Jump to content

Container Error: Ticking Entity


Flurry

Recommended Posts

So, I was watching some videos about how to do the Guis with blocks mainly with Containers & Screens, once loading up my game, and click on my block, I noticed that the gui was shown for a split second until it crashed my game.

 

The video I was watching - 
https://www.youtube.com/watch?v=GsV_pKkE1mo&list=PLmaTwVFUUXiBKYYSyrv_uPPoPZtEsCBVJ&index=5&t=1692s

 

My Container Class -

https://sourceb.in/9568761a4b.java

 

My Screen Class -

https://sourceb.in/712ae79b4c.java

 

My error - 

 
 
 
1
Spoiler

---- Minecraft Crash Report ----

// Ooh. Shiny.

 

Time: 11/21/19 4:35 PM

Description: Ticking entity

 

java.lang.NullPointerException: Ticking entity

at pichuminer.blocks.TestBlockContainer.canInteractWith(TestBlockContainer.java:37) ~[?:?] {}

at net.minecraft.entity.player.ServerPlayerEntity.tick(ServerPlayerEntity.java:322) ~[?:?] {pl:accesstransformer:B}

at net.minecraft.world.server.ServerWorld.updateEntity(ServerWorld.java:587) ~[?:?] {}

at net.minecraft.world.World.func_217390_a(World.java:684) ~[?:?] {pl:accesstransformer:B}

at net.minecraft.world.server.ServerWorld.tick(ServerWorld.java:394) ~[?:?] {}

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:829) ~[?:?] {pl:accesstransformer:B}

at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:764) ~[?:?] {pl:accesstransformer:B}

at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:112) ~[?:?] {pl:runtimedistcleaner:A}

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:622) [?:?] {pl:accesstransformer:B}

at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222] {}

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- Head --

Thread: Server thread

Stacktrace:

at pichuminer.blocks.TestBlockContainer.canInteractWith(TestBlockContainer.java:37)

at net.minecraft.entity.player.ServerPlayerEntity.tick(ServerPlayerEntity.java:322)

at net.minecraft.world.server.ServerWorld.updateEntity(ServerWorld.java:587)

 

-- Entity being ticked --

Details:

Entity Type: minecraft:player (net.minecraft.entity.player.ServerPlayerEntity)

Entity ID: 167

Entity Name: Dev

Entity's Exact location: 251.10, 71.00, 210.27

Entity's Block location: World: (251,71,210), Chunk: (at 11,4,2 in 15,13; contains blocks 240,0,208 to 255,255,223), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)

Entity's Momentum: 0.00, -0.08, 0.00

Entity's Passengers: []

Entity's Vehicle: ~~ERROR~~ NullPointerException: null

Stacktrace:

at net.minecraft.world.World.func_217390_a(World.java:684)

at net.minecraft.world.server.ServerWorld.tick(ServerWorld.java:394)

 

-- Affected level --

Details:

All players: 1 total; [ServerPlayerEntity['Dev'/167, l='New World', x=251.10, y=71.00, z=210.27]]

Chunk stats: ServerChunkCache: 2176

Level dimension: DimensionType{minecraft:overworld}

Level name: New World

Level seed: 2129524378310876350

Level generator: ID 00 - default, ver 1. Features enabled: true

Level generator options: {}

Level spawn location: World: (256,70,208), Chunk: (at 0,4,0 in 16,13; contains blocks 256,0,208 to 271,255,223), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)

Level time: 17992 game time, 7220 day time

Level storage version: 0x04ABD - Anvil

Level weather: Rain time: 15293 (now: false), thunder time: 93173 (now: false)

Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true

Stacktrace:

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:829)

at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:764)

at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:112)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:622)

at java.lang.Thread.run(Thread.java:748)

 

-- System Details --

Details:

Minecraft Version: 1.14.4

Minecraft Version ID: 1.14.4

Operating System: Mac OS X (x86_64) version 10.15.1

Java Version: 1.8.0_222, AdoptOpenJDK

Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), AdoptOpenJDK

Memory: 363470112 bytes (346 MB) / 1060634624 bytes (1011 MB) up to 1908932608 bytes (1820 MB)

CPUs: 4

JVM Flags: 1 total; -Xss1M

ModLauncher: 3.2.0+60+b86c1d4

ModLauncher launch target: fmluserdevclient

ModLauncher naming: mcp

ModLauncher services: 

/eventbus-1.0.0-service.jar eventbus PLUGINSERVICE 

/forge-1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3-launcher.jar object_holder_definalize PLUGINSERVICE 

/forge-1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3-launcher.jar runtime_enum_extender PLUGINSERVICE 

/accesstransformers-1.0.0-shadowed.jar accesstransformer PLUGINSERVICE 

/forge-1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3-launcher.jar capability_inject_definalize PLUGINSERVICE 

/forge-1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3-launcher.jar runtimedistcleaner PLUGINSERVICE 

/forge-1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3-launcher.jar fml TRANSFORMATIONSERVICE 

FML: 28.1

Forge: net.minecraftforge:28.1.0

FML Language Providers: 

javafml@28.1

minecraft@1

Mod List: 

forge-1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3.jar Forge {forge@28.1.0 DONE}

main PichuMod {pichumod@0.1 DONE}

client-extra.jar Minecraft {minecraft@1.14.4 DONE}

Player Count: 1 / 8; [ServerPlayerEntity['Dev'/167, l='New World', x=251.10, y=71.00, z=210.27]]

Data Packs: vanilla, mod:pichumod, mod:forge

Type: Integrated Server (map_client.txt)

Is Modded: Definitely; Client brand changed to 'forge'

 

Link to comment
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.
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...

×   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.



×
×
  • Create New...

Important Information

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