Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Error:
- ---- Minecraft Crash Report ----
- // Sorry :(
- Time: 6.1.2016 15:34
- Description: Ticking entity
- java.lang.ArrayIndexOutOfBoundsException: 9
- at com.nitrodev.constructio.blocks.TileConstructor.getStackInSlot(TileConstructor.java:19)
- at net.minecraft.inventory.Slot.getStack(Slot.java:81)
- at net.minecraft.inventory.Container.detectAndSendChanges(Container.java:84)
- at net.minecraft.entity.player.EntityPlayerMP.onUpdate(EntityPlayerMP.java:263)
- at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2009)
- at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:724)
- at net.minecraft.world.World.updateEntity(World.java:1974)
- at net.minecraft.world.World.updateEntities(World.java:1803)
- at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:559)
- at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:771)
- at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:675)
- at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:159)
- at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:542)
- at java.lang.Thread.run(Thread.java:745)
- A detailed walkthrough of the error, its code path and all known details is as follows:
- ---------------------------------------------------------------------------------------
- -- Head --
- Stacktrace:
- at com.nitrodev.constructio.blocks.TileConstructor.getStackInSlot(TileConstructor.java:19)
- at net.minecraft.inventory.Slot.getStack(Slot.java:81)
- at net.minecraft.inventory.Container.detectAndSendChanges(Container.java:84)
- at net.minecraft.entity.player.EntityPlayerMP.onUpdate(EntityPlayerMP.java:263)
- at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2009)
- at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:724)
- at net.minecraft.world.World.updateEntity(World.java:1974)
- -- Entity being ticked --
- Details:
- Entity Type: null (net.minecraft.entity.player.EntityPlayerMP)
- Entity ID: 258
- Entity Name: Player419
- Entity's Exact location: 182,53, 61,00, 242,30
- Entity's Block location: 182,00,61,00,242,00 - World: (182,61,242), Chunk: (at 6,3,2 in 11,15; contains blocks 176,0,240 to 191,255,255), 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 Rider: ~~ERROR~~ NullPointerException: null
- Entity's Vehicle: ~~ERROR~~ NullPointerException: null
- Stacktrace:
- at net.minecraft.world.World.updateEntities(World.java:1803)
- at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:559)
- -- Affected level --
- Details:
- Level name: Testing
- All players: 1 total; [EntityPlayerMP['Player419'/258, l='Testing', x=182,53, y=61,00, z=242,30]]
- Chunk stats: ServerChunkCache: 653 Drop: 0
- Level seed: -5411415688051097589
- Level generator: ID 00 - default, ver 1. Features enabled: true
- Level generator options:
- Level spawn location: 188,00,64,00,252,00 - World: (188,64,252), Chunk: (at 12,4,12 in 11,15; contains blocks 176,0,240 to 191,255,255), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
- Level time: 9385 game time, 9385 day time
- Level dimension: 0
- Level storage version: 0x04ABD - Anvil
- Level weather: Rain time: 67467 (now: false), thunder time: 89294 (now: false)
- Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
- Stacktrace:
- at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:771)
- at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:675)
- at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:159)
- at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:542)
- at java.lang.Thread.run(Thread.java:745)
- -- System Details --
- Details:
- Minecraft Version: 1.8.8
- Operating System: Windows 8.1 (amd64) version 6.3
- Java Version: 1.8.0_65, Oracle Corporation
- Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
- Memory: 596043760 bytes (568 MB) / 840433664 bytes (801 MB) up to 1895825408 bytes (1808 MB)
- JVM Flags: 0 total;
- IntCache: cache: 0, tcache: 0, allocated: 12, tallocated: 94
- FML: MCP 9.18 Powered by Forge 11.15.0.1649 4 mods loaded, 4 mods active
- States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
- UCHIJAAAA mcp{9.18} [Minecraft Coder Pack] (minecraft.jar)
- UCHIJAAAA FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.8.8-11.15.0.1649-1.8.8.jar)
- UCHIJAAAA Forge{11.15.0.1649} [Minecraft Forge] (forgeSrc-1.8.8-11.15.0.1649-1.8.8.jar)
- UCHIJAAAA constructio{1.0} [ConstructIO] (ConstructIO)
- Loaded coremods (and transformers):
- GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
- Profiler Position: N/A (disabled)
- Player Count: 1 / 8; [EntityPlayerMP['Player419'/258, l='Testing', x=182,53, y=61,00, z=242,30]]
- Type: Integrated Server (map_client.txt)
- Is Modded: Definitely; Client brand changed to 'fml,forge'
- Code:
- package com.nitrodev.constructio.blocks;
- import net.minecraft.entity.player.EntityPlayer;
- import net.minecraft.inventory.IInventory;
- import net.minecraft.item.ItemStack;
- import net.minecraft.nbt.NBTTagCompound;
- import net.minecraft.nbt.NBTTagList;
- import net.minecraft.tileentity.TileEntity;
- import net.minecraft.util.IChatComponent;
- public class TileConstructor extends TileEntity implements IInventory {
- private ItemStack[] stacks = new ItemStack[9];
- public int getSizeInventory() {
- return 9;
- }
- public ItemStack getStackInSlot(int index) {
- return this.stacks[index];
- }
- public ItemStack decrStackSize(int index, int count) {
- if (this.stacks[index] != null) {
- ItemStack lvt_3_2_;
- if (this.stacks[index].stackSize <= count) {
- lvt_3_2_ = this.stacks[index];
- this.stacks[index] = null;
- this.markDirty();
- return lvt_3_2_;
- } else {
- lvt_3_2_ = this.stacks[index].splitStack(count);
- if (this.stacks[index].stackSize == 0) {
- this.stacks[index] = null;
- }
- this.markDirty();
- return lvt_3_2_;
- }
- } else {
- return null;
- }
- }
- public ItemStack removeStackFromSlot(int p_removeStackFromSlot_1_) {
- if (this.stacks[p_removeStackFromSlot_1_] != null) {
- ItemStack lvt_2_1_ = this.stacks[p_removeStackFromSlot_1_];
- this.stacks[p_removeStackFromSlot_1_] = null;
- return lvt_2_1_;
- } else {
- return null;
- }
- }
- public void setInventorySlotContents(int p_setInventorySlotContents_1_, ItemStack p_setInventorySlotContents_2_) {
- this.stacks[p_setInventorySlotContents_1_] = p_setInventorySlotContents_2_;
- if (p_setInventorySlotContents_2_ != null && p_setInventorySlotContents_2_.stackSize > this.getInventoryStackLimit()) {
- p_setInventorySlotContents_2_.stackSize = this.getInventoryStackLimit();
- }
- this.markDirty();
- }
- public String getName() {
- return null;
- }
- public boolean hasCustomName() {
- return false;
- }
- @Override
- public IChatComponent getDisplayName() {
- return null;
- }
- public void readFromNBT(NBTTagCompound compound) {
- super.readFromNBT(compound);
- NBTTagList lvt_2_1_ = compound.getTagList("Items", 10);
- this.stacks = new ItemStack[this.getSizeInventory()];
- for (int lvt_3_1_ = 0; lvt_3_1_ < lvt_2_1_.tagCount(); ++lvt_3_1_) {
- NBTTagCompound lvt_4_1_ = lvt_2_1_.getCompoundTagAt(lvt_3_1_);
- int lvt_5_1_ = lvt_4_1_.getByte("Slot") & 255;
- if (lvt_5_1_ >= 0 && lvt_5_1_ < this.stacks.length) {
- this.stacks[lvt_5_1_] = ItemStack.loadItemStackFromNBT(lvt_4_1_);
- }
- }
- }
- public void writeToNBT(NBTTagCompound compound) {
- super.writeToNBT(compound);
- NBTTagList lvt_2_1_ = new NBTTagList();
- for (int lvt_3_1_ = 0; lvt_3_1_ < this.stacks.length; ++lvt_3_1_) {
- if (this.stacks[lvt_3_1_] != null) {
- NBTTagCompound lvt_4_1_ = new NBTTagCompound();
- lvt_4_1_.setByte("Slot", (byte) lvt_3_1_);
- this.stacks[lvt_3_1_].writeToNBT(lvt_4_1_);
- lvt_2_1_.appendTag(lvt_4_1_);
- }
- }
- }
- public int getInventoryStackLimit() {
- return 64;
- }
- public boolean isUseableByPlayer(EntityPlayer p_isUseableByPlayer_1_) {
- return this.worldObj.getTileEntity(this.pos) != this ? false : p_isUseableByPlayer_1_.getDistanceSq((double) this.pos.getX() + 0.5D, (double) this.pos.getY() + 0.5D, (double) this.pos.getZ() + 0.5D) <= 64.0D;
- }
- public void openInventory(EntityPlayer p_openInventory_1_) {
- }
- public void closeInventory(EntityPlayer p_closeInventory_1_) {
- }
- public boolean isItemValidForSlot(int p_isItemValidForSlot_1_, ItemStack p_isItemValidForSlot_2_) {
- return true;
- }
- public int getField(int p_getField_1_) {
- return 0;
- }
- public void setField(int p_setField_1_, int p_setField_2_) {
- }
- public int getFieldCount() {
- return 0;
- }
- public void clear() {
- for (int lvt_1_1_ = 0; lvt_1_1_ < this.stacks.length; ++lvt_1_1_) {
- this.stacks[lvt_1_1_] = null;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement