Thursday, January 19, 2017

CompatLayer for Minecraft 1.11/1.10.2



Description

CompatLayer 1.11/1.10.2 is a small library/mod that allows you to write mods that run on 1.10.2 and 1.11 with the same binary jar. At least upto some point. At the very least it helps to minimize the source changes between your 1.10.2 version and 1.11 version of your mod in case you do need to have two versions for whatever reason.

Basically CompatLayer is nothing more then a set of classes and functions that help abstract away the differences between 1.10.2 and 1.11. At this moment it contains:

  • CompatBlock: A simple extension of Block that overrides methods that have changed in 1.11 and calls CompatLayer specific versions that you can override instead in your code. Currently supports ‘neighborChanged’ and ‘onBlockActivated’
  • CompatItem: A simple extension of Item that basically does the same thing as CompatBlock but then for items. Currently contains ‘onItemRightClick’
  • CompatInventory: an interface that inherits from IInventory and adds a default implementation for the new func_191420_l function.
  • CompatSidedInventory: same for ISidedInventory.
  • ChatTools: contains a simple message ‘addChatMessage’ that avoids the new parameter that player.addChatComponentMessage() has.
  • ItemStackTools: this is the biggest reason for this mod. ItemStack handling has changed a lot in 1.11. Basically itemstacks are never ‘null’. Instead there is a new empty itemstack. This class makes abstraction of that. If you carefully go through all your code that uses itemstacks and replace all calls and tests (especially things like ‘stack = null’ or ‘if (stack == null)’) with methods from this class.



  • Download here :
    CompatLayer for Minecraft 1.11/1.10.2

    See more :
    Minecraft 1.11.2 Mods
    Command Blocks 1.11.2
    Minecraft 1.11 Maps

    Related Posts:

    • Pam’s Huge Mushroom Spawn Mod 1.6.4/1.6.2/1.5.2 Description This mod adds giant red and brown mushroom spawns across several biomes.  Change their frequency in the config file.Block IDs: None Item IDs: None Config File: YesInstallation: Download … Read More
    • MineDonalds Mod 1.6.4/1.6.2 Description McDonalds is great. You can buy lots of different things. Burgers, big macs, fries, sodas, and lots of other things! Wouldn’t it be cool if you could not only eat all these things, but make them? How about … Read More
    • Ingame Info Mod 1.6.4/1.6.2/1.5.2 Description Want to know how much score you have without having to die? In need of real time information like weather, light level or your world size as you explore? Then this mod is for you!Ingame Info adds the abilit… Read More
    • Pam’s Melon Spawn Mod 1.6.4/1.6.2/1.5.2 Description This mod adds melon patches in the world similar to pumpkin patches in forest, plains, swamp, ocean, and jungle biomes.Block IDs: None, Item IDs: None, Config File: NoInstallation: Download Pam’s Me… Read More
    • Block Breaker Mod 1.6.4/1.6.2 Description Block Breaker allows you to define a list of blocks that will break in a chain reaction when an adjacent block of the same type is broken.MultiMine users: you MUST add the log block IDs you are using in Blo… Read More

    0 comments:

    Post a Comment