Code Monkey home page Code Monkey logo

jankson-fabric's Introduction

Jankson-Fabric

A fabric-mod wrapper for Jankson, packaged with helpful fabric-specific deserializers

jankson-fabric's People

Contributors

amirhan-taipovjan-greatest-i avatar biom4st3r avatar byquanton avatar falkreon avatar frqnny avatar i509vcb avatar juuxel avatar prospector avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jankson-fabric's Issues

Serialization support for registry objects that are only deserializable

.registerDeserializer(String.class, Enchantment.class, (s,m)->Registry.ENCHANTMENT .get(new Identifier(s)))
.registerDeserializer(String.class, EntityType.class, (s,m)->Registry.ENTITY_TYPE .get(new Identifier(s)))
.registerDeserializer(String.class, Feature.class, (s,m)->Registry.FEATURE .get(new Identifier(s)))
.registerDeserializer(String.class, Fluid.class, (s,m)->Registry.FLUID .get(new Identifier(s)))
.registerDeserializer(String.class, Item.class, (s,m)->Registry.ITEM .get(new Identifier(s))) //TODO: Support tags?
.registerDeserializer(String.class, MemoryModuleType.class, (s,m)->Registry.MEMORY_MODULE_TYPE .get(new Identifier(s)))
.registerDeserializer(String.class, PaintingMotive.class, (s,m)->Registry.MOTIVE .get(new Identifier(s))) //MOTIF. It's spelled "MOTIF".
.registerDeserializer(String.class, ParticleType.class, (s,m)->Registry.PARTICLE_TYPE .get(new Identifier(s)))
.registerDeserializer(String.class, PointOfInterestType.class,(s,m)->Registry.POINT_OF_INTEREST_TYPE.get(new Identifier(s)))
.registerDeserializer(String.class, Potion.class, (s,m)->Registry.POTION .get(new Identifier(s)))
.registerDeserializer(String.class, RecipeSerializer.class, (s,m)->Registry.RECIPE_SERIALIZER .get(new Identifier(s)))
.registerDeserializer(String.class, RecipeType.class, (s,m)->Registry.RECIPE_TYPE .get(new Identifier(s)))
.registerDeserializer(String.class, Registry.class, (s,m)->Registry.REGISTRIES .get(new Identifier(s))) //You know you want to do it
.registerDeserializer(String.class, RuleTest.class, (s,m)->Registry.RULE_TEST .get(new Identifier(s)))
.registerDeserializer(String.class, Schedule.class, (s,m)->Registry.SCHEDULE .get(new Identifier(s)))
.registerDeserializer(String.class, SensorType.class, (s,m)->Registry.SENSOR_TYPE .get(new Identifier(s)))
.registerDeserializer(String.class, SoundEvent.class, (s,m)->Registry.SOUND_EVENT .get(new Identifier(s)))
.registerDeserializer(String.class, StatType.class, (s,m)->Registry.STAT_TYPE .get(new Identifier(s)))
.registerDeserializer(String.class, StatusEffect.class, (s,m)->Registry.STATUS_EFFECT .get(new Identifier(s)))
.registerDeserializer(String.class, StructureFeature.class, (s,m)->Registry.STRUCTURE_FEATURE .get(new Identifier(s)))
.registerDeserializer(String.class, StructurePieceType.class, (s,m)->Registry.STRUCTURE_PIECE .get(new Identifier(s)))
.registerDeserializer(String.class, StructurePoolElementType.class,(s,m)->Registry.STRUCTURE_POOL_ELEMENT.get(new Identifier(s)))
.registerDeserializer(String.class, StructureProcessorType.class, (s,m)->Registry.STRUCTURE_PROCESSOR .get(new Identifier(s)))
.registerDeserializer(String.class, SurfaceBuilder.class, (s,m)->Registry.SURFACE_BUILDER .get(new Identifier(s)))
.registerDeserializer(String.class, VillagerProfession.class, (s,m)->Registry.VILLAGER_PROFESSION .get(new Identifier(s)))
.registerDeserializer(String.class, VillagerType.class, (s,m)->Registry.VILLAGER_TYPE .get(new Identifier(s)))

These all have deserializers, but no serializers. It would be a one-line change for each (just changing registerDeserializer to a register call like above for the other ones).

Update to 1.17

The mod extra-pieces is a very important mod for me and as the owner doesn't want to update it, I am now trying to. Problem is that it depends on Jankson-Fabric and I can't find a version of Jankson-Fabric that works with 1.17.

It would help me a lot if Jankson-Fabric would be updated to 1.17, as I don't know how to replace it's code.

Display as Library in Mod Menu

Is your feature request related to a problem? Please describe.
The mod appears in the normal Modmenu list, even if library mods are hidden.
Usually you would only want to see the userfacing mods and it might cause confusion, e.g. "I didn't install this".

Describe the solution you'd like
Modmenu provides a way to specify it in the fabric.mod.json:

"custom": {
  "modmenu": {
    "badges": [ "library" ]
  }
}

I can not find jankson 2.0 anywhere.

I have a mod "shulkercharm-1.1.2+1.15.2.jar" that say it requires jankson 2.0 i have "Jankson-1.0.0+j1.1.2.jar" and cannot find jankson 2.0 anywhere.

Update to 1.20

Is your feature request related to a problem? Please describe.
The mod is not available on 1.20

Describe the solution you'd like
I'd like the mod to be updated to 1.20

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.