Interface ICustomHolderSet<T>
- All Superinterfaces:
HolderSet<T>
,IHolderSetExtension<T>
,Iterable<Holder<T>>
- All Known Implementing Classes:
AndHolderSet
,AnyHolderSet
,CompositeHolderSet
,NotHolderSet
,OrHolderSet
Interface for mods' custom holderset types
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.core.HolderSet
HolderSet.Direct<T>, HolderSet.ListBacked<T>, HolderSet.Named<T>
Nested classes/interfaces inherited from interface net.neoforged.neoforge.common.extensions.IHolderSetExtension
IHolderSetExtension.SerializationType
-
Method Summary
Modifier and TypeMethodDescriptionWhat format this holderset serializes to in json/nbt/etctype()
Returns HolderSetType registered toinvalid reference
ForgeRegistries.HOLDER_SET_TYPES
Methods inherited from interface net.minecraft.core.HolderSet
canSerializeIn, contains, get, getRandomElement, size, stream, unwrap, unwrapKey
Methods inherited from interface net.neoforged.neoforge.common.extensions.IHolderSetExtension
addInvalidationListener
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
type
HolderSetType type()Returns HolderSetType registered toinvalid reference
ForgeRegistries.HOLDER_SET_TYPES
- Returns:
- HolderSetType registered to
invalid reference
ForgeRegistries.HOLDER_SET_TYPES
-
serializationType
Description copied from interface:IHolderSetExtension
What format this holderset serializes to in json/nbt/etc- Specified by:
serializationType
in interfaceIHolderSetExtension<T>
-