Class FabricRegisterEntry<T>
java.lang.Object
com.hexagram2021.chromosomelib.registry.AbstractRegisterEntry<T>
com.hexagram2021.chromosomelib.fabric.registry.FabricRegisterEntry<T>
- All Implemented Interfaces:
Supplier<T>,net.minecraft.core.Holder<T>
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.hexagram2021.chromosomelib.registry.AbstractRegisterEntry
key -
Constructor Summary
ConstructorsConstructorDescriptionFabricRegisterEntry(net.minecraft.core.Holder<T> holder, net.minecraft.resources.ResourceKey<T> key) -
Method Summary
Methods inherited from class com.hexagram2021.chromosomelib.registry.AbstractRegisterEntry
asOptional, compare, equals, equals, get, hashCode, hashCode, id, is, is, is, key, kind, newHolderObject2IntTreeMap, newHolderTreeMap, newHolderTreeSet, toString, unwrap, unwrapKey
-
Constructor Details
-
FabricRegisterEntry
-
-
Method Details
-
is
- Specified by:
isin interfacenet.minecraft.core.Holder<T>- Specified by:
isin classAbstractRegisterEntry<T>- Parameters:
tag- tag to check- Returns:
- true if the entry is in the tag.
-
tags
- Specified by:
tagsin interfacenet.minecraft.core.Holder<T>- Specified by:
tagsin classAbstractRegisterEntry<T>- Returns:
- tags of the entry.
-
isBound
public boolean isBound()- Specified by:
isBoundin interfacenet.minecraft.core.Holder<T>- Specified by:
isBoundin classAbstractRegisterEntry<T>- Returns:
- true if the entry is bound.
-
canSerializeIn
- Specified by:
canSerializeInin interfacenet.minecraft.core.Holder<T>- Specified by:
canSerializeInin classAbstractRegisterEntry<T>- Parameters:
owner- owner of the entry- Returns:
- true if the entry can be serialized in the owner.
- See Also:
-
Holder.Reference.canSerializeIn(net.minecraft.core.HolderOwner<T>)
-
value
- Specified by:
valuein interfacenet.minecraft.core.Holder<T>- Specified by:
valuein classAbstractRegisterEntry<T>- Returns:
- value of the entry.
- See Also:
-
Holder.value()
-
asHolder
Description copied from class:AbstractRegisterEntryGet the vanilla holder of the entry.- Specified by:
asHolderin classAbstractRegisterEntry<T>- Returns:
- vanilla holder of the entry.
-