Package petrolpark.mc.library.core.flags
Class GenericFlagPole
java.lang.Object
petrolpark.mc.library.core.flags.AbstractFlagPole<Object,Object>
petrolpark.mc.library.core.flags.GenericFlagPole
A
AbstractFlagPole not tied to any specific object. When these are used, the developer will have to manage loading and saving them themselves.-
Field Summary
Fields inherited from class petrolpark.mc.library.core.flags.AbstractFlagPole
flags, ORPHAN_HOLDER_LIST_CODEC, ORPHAN_HOLDER_LIST_STREAM_CODEC, orphanFlags, stack -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleDeprecated.Deprecated.getType()Deprecated.readNBT(net.minecraft.nbt.Tag tag, net.minecraft.core.HolderLookup.Provider registries) final voidsave()Deprecated.Generic Flagss must be saved externally.net.minecraft.nbt.TagwriteNBT(net.minecraft.core.HolderLookup.Provider registries) Methods inherited from class petrolpark.mc.library.core.flags.AbstractFlagPole
clearFlags, flag, flagAll, getOrphanHolderList, has, hasAnyExtrinsicFlag, hasAnyFlag, isIntrinsic, streamAllFlags, streamIntrinsicFlags, streamOrphanExtrinsicFlags, streamShownIfAbsentFlags, unflag, unflagOnlyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface petrolpark.mc.library.core.flags.IFlagPole
streamShownAbsentFlags, streamShownFlags
-
Constructor Details
-
GenericFlagPole
public GenericFlagPole() -
GenericFlagPole
-
-
Method Details
-
readNBT
public GenericFlagPole readNBT(net.minecraft.nbt.Tag tag, net.minecraft.core.HolderLookup.Provider registries) -
writeNBT
public net.minecraft.nbt.Tag writeNBT(net.minecraft.core.HolderLookup.Provider registries) -
getFlaggable
Deprecated. -
getType
Deprecated. -
getAmount
Deprecated. -
save
Deprecated.Generic Flagss must be saved externally.Description copied from interface:IFlagPoleCalled whenever theIFlagPoleis changed, to save the changes to the underlying object.
-