EMPTY ) int inventory_size = 1 int numPlayerUsing = 0 private IItemHandlerModifiable items = createHandler () private LazyOptional itemHandler = LazyOptional. Chest Variables protected NonNullList ItemsList = NonNullList.
Thank you in advance ! (the code is very long i tried to delete useless parts like particle effects and other things sry) Here is my code tell me if i did something wrong. I know that because i tried wrote a line that says: "init" whenever a tileentity spawns and it always says Init 2 times.įurthermore sometimes when the tileentity destroys or place a block the block that has been placed or destroyed is sometimes a illusion (when i click on it i reverts back to what it was before) and i assume that those 2 problems are linked. Let me explain, when i want to put a tileentity on the ground that i created it will always create 2 tileentities with the same values.
Hi, since i started codding i always got that bug no matter what i tried, it will stay continue to exist.