Wednesday, December 28, 2016

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:

    • Engineer’s Toolbox Mod 1.6.4/1.6.2/1.5.2 Description What Engineer’s Toolbox Mod does?Have you ever had to run a wire, pipe or cable through a wall, but didn’t want to leave a huge hole in it? Perhaps at some point you’ve wanted to run multiple cables or pipe… Read More
    • Witches and More Mod 1.6.4/1.5.2 Description Witches and More Mod Features:A whole new biome is added in this mod entitled ?The Median’, sights in include the infamous ?Great Tree’. Great Tree saplings, under water plants and ?Fionas Thorns’ are all … Read More
    • Super Villains Mod 1.6.4/1.6.2/1.5.2 Description What mod does?Super Villains Mod which adds three new and evil super villains into your game. Wear the costumes and gain the powers of Venom, Loki and Scarecrow to bring pain to the world of Minecraft!Featu… Read More
    • Mother of Pearl Mod 1.6.4/1.6.2 Description About this mod:Do you like exploring? Do you get enraged every time you see an ocean with endless nothing in the distance? Then check out? Mother of PearlThis mod attempts to add a bit of excitement to thos… Read More
    • Insectia Mod 1.6.4/1.6.2 Description What is Insectia?Insectia is a new mod created as part of the ModJam competition. This mod allows the user to craft tools that, when used on different blocks in certain biomes, will produce insects. These i… Read More

    0 comments:

    Post a Comment