File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
src/main/kotlin/dev/aaronhowser/mods/aaron/misc Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 1111- Long#toBlockPos
1212- Long#toChunkPos
1313- ItemStack#asIngredient
14+ - IntrinsicHolderTagsProvider$IntrinsicTagAppender<T >#add(vararg values: Holder<T >)
1415
1516# 1.6.0
1617
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package dev.aaronhowser.mods.aaron.misc
33import com.mojang.datafixers.util.Either
44import net.minecraft.core.*
55import net.minecraft.core.component.DataComponentType
6+ import net.minecraft.data.tags.IntrinsicHolderTagsProvider
67import net.minecraft.nbt.CompoundTag
78import net.minecraft.network.chat.ClickEvent
89import net.minecraft.network.chat.Component
@@ -215,4 +216,9 @@ object AaronExtensions {
215216 fun Long.toBlockPos (): BlockPos = BlockPos .of(this )
216217 fun Long.toChunkPos (): ChunkPos = ChunkPos (this )
217218
219+ fun <T > IntrinsicHolderTagsProvider.IntrinsicTagAppender<T>.add (vararg values : Holder <T >): IntrinsicHolderTagsProvider .IntrinsicTagAppender <T > {
220+ for (value in values) this .add(value)
221+ return this
222+ }
223+
218224}
You can’t perform that action at this time.
0 commit comments