Package alexiil.mc.lib.attributes.misc
package alexiil.mc.lib.attributes.misc
-
ClassDescriptionImplementation helper class for LBA
Combined.Skeleton class for use when exposing an attribute (like a fluid inventory) from an item that is contained in a reference.CallableRef<T>AReferencethat delegates to aSupplierforCallableRef.get(),ConsumerforCallableRef.set(Object), and aPredicateforCallableRef.isValid(Object).AnObjectthat combines several sub objects of one type into a single object of the same type.AReferencethat can be modified untilDestroyableRef.destroy()is called, after which all calls toDestroyableRef.set(Object)andDestroyableRef.isValid(Object)will return false.A type ofConsumerthat may or may not accept a given input.Marker interface for the various null-like implementations of item and fluid inventories.AnObjectthat wraps an object of a different type into some other type.Ref<T>Reference<T>A reference to some object.An object that can be saved and loaded (in place, unlike fluid keys or volumes which must be loaded from a specialised static method).A variant ofCallableRefthat usesSupplierforSimulatableRef.get(), andLimitedConsumerforSimulatableRef.set(Object)andSimulatableRef.isValid(Object).SpecialistReferenceinterface forItemStacks.AReferencethat may be obtained throughUnmodifiableRef.get(), but never allows the value to be changed inUnmodifiableRef.set(Object).