-
Recently Browsing
No registered users viewing this page.
-
Posts
-
By diesieben07 · Posted
This field must not be static. Please learn what static means and why it is not appropriate here. -
By BeardlessBrady · Posted
I am trying to create a resource pack on mod load. I have everything but creating the default assets, Is there a way to grab an asset file and copy it to the config folder without going through the jar and copy/pasting it? -
By IntentScarab · Posted
Sweet, made those changes now, thank you https://github.com/RhysGrabany/Experienced Here you go, the changes I've made rn are under the tile_passing branch -
By diesieben07 · Posted
Yes. A good reminder is to make DeferredReigster fields private. Hm, looks alright on first glance. Please post a Git repo of your mod. -
By IntentScarab · Posted
So I should delete the DeferredRegisters in the Registration class and just keep them separate in their respective classes? So ModItems gets the DeferrefRegister and so on? I did notice that when I changed in ModTiles from the DeferredRegister in Registration to the specific class DefReg it actually registered, so that explains something to me. This is my ExperienceBlockTile constructor and the getTier method that returns the Tile: public ExperienceBlockTile(ExperienceBlock.Tier tier) { super(getTier(tier)); inputContents = ExperienceBlockContents.createForTileEntity(INPUT_SLOTS, this::canPlayerAccessInventory, this::markDirty); outputContents = ExperienceBlockContents.createForTileEntity(OUTPUT_SLOTS, this::canPlayerAccessInventory, this::markDirty); expBarContents = ExperienceBlockContents.createForTileEntity(EXP_BAR_SLOT, this::canPlayerAccessInventory, this::markDirty); } public static TileEntityType<ExperienceBlockTile> getTier(ExperienceBlock.Tier tier){ switch (tier){ case SMALL: return ModTiles.EXPERIENCE_BLOCK_SMALL.get(); case MEDIUM: return ModTiles.EXPERIENCE_BLOCK_MEDIUM.get(); case LARGE: return ModTiles.EXPERIENCE_BLOCK_LARGE.get(); case CREATIVE: return ModTiles.EXPERIENCE_BLOCK_CREATIVE.get(); default: throw new IllegalArgumentException("Unkown tier: " + tier); } }
-
-
Topics
-
Who's Online (See full list)