Interface PacketItem


public interface PacketItem
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack>
     
    net.minecraft.world.entity.EntityType<?>
    getType(net.minecraft.nbt.CompoundTag pNbt)
     
    boolean
     
    net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack>
    spawnFromPacket(net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack stack, net.minecraft.core.BlockPos clickedPos, net.minecraft.world.entity.EntityType<?> entityType)
     
  • Method Details

    • spawnConditions

      boolean spawnConditions()
    • defaultType

      boolean defaultType()
    • getType

      net.minecraft.world.entity.EntityType<?> getType(net.minecraft.nbt.CompoundTag pNbt)
    • spawnFromPacket

      net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack> spawnFromPacket(net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack stack, net.minecraft.core.BlockPos clickedPos, net.minecraft.world.entity.EntityType<?> entityType)
    • errorPacket

      net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack> errorPacket()