Overview
Codecs and small utility classes.
The base module contains some small utility classes used elsewhere:
Ephemeral2
Ephemeral2
An object that can hold a single value and return them a certain amount of times. Used by my mods to pass arguments between functions in mixins. Example use case:
If we wanted to change level.createItem()
so that it depends on player
:
ResultHolder
ResultHolder
Object that can hold a result from an event, designed to be used with cancellable events from Fabric API.
Memoizer
Small class to lazily initialize an object.
ServerTracker
ServerTracker
Static access to the currently running MinecraftServer
object.
Last updated