Class LaunchedItem
java.lang.Object
com.simibubi.create.content.schematics.cannon.LaunchedItem
- Direct Known Subclasses:
LaunchedItem.ForBlockState,LaunchedItem.ForEntity
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionnet.minecraft.world.item.ItemStacknet.minecraft.core.BlockPosintint -
Method Summary
Modifier and TypeMethodDescriptionstatic LaunchedItemfromNBT(net.minecraft.nbt.CompoundTag c, net.minecraft.core.HolderLookup.Provider registries, net.minecraft.core.HolderGetter<net.minecraft.world.level.block.Block> holderGetter) net.minecraft.nbt.CompoundTagserializeNBT(net.minecraft.core.HolderLookup.Provider registries) booleanupdate(net.minecraft.world.level.Level world)
-
Field Details
-
totalTicks
public int totalTicks -
ticksRemaining
public int ticksRemaining -
target
public net.minecraft.core.BlockPos target -
stack
public net.minecraft.world.item.ItemStack stack
-
-
Method Details
-
update
public boolean update(net.minecraft.world.level.Level world) -
serializeNBT
public net.minecraft.nbt.CompoundTag serializeNBT(net.minecraft.core.HolderLookup.Provider registries) -
fromNBT
public static LaunchedItem fromNBT(net.minecraft.nbt.CompoundTag c, net.minecraft.core.HolderLookup.Provider registries, net.minecraft.core.HolderGetter<net.minecraft.world.level.block.Block> holderGetter)
-