Class DropSet.Drop

java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.boss.DropSet.Drop
Enclosing class:
DropSet

public static class DropSet.Drop extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    Drop(int weight, String name, net.minecraft.world.item.ItemStack item, boolean ephemeral, String... commands)
     
    Drop(com.google.gson.JsonObject json, com.google.gson.JsonDeserializationContext ctx)
     
    Drop(net.minecraft.network.FriendlyByteBuf buf)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    drop(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.phys.Vec3 pos)
     
    net.minecraft.world.item.ItemStack
     
     
    int
     
    void
    give(net.minecraft.server.level.ServerPlayer player)
     
    void
    toBuffer(net.minecraft.network.FriendlyByteBuf buf)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Drop

      public Drop(int weight, String name, net.minecraft.world.item.ItemStack item, boolean ephemeral, String... commands)
    • Drop

      public Drop(com.google.gson.JsonObject json, com.google.gson.JsonDeserializationContext ctx)
    • Drop

      public Drop(net.minecraft.network.FriendlyByteBuf buf)
  • Method Details

    • toBuffer

      public void toBuffer(net.minecraft.network.FriendlyByteBuf buf)
    • getWeight

      public int getWeight()
    • getName

      public String getName()
    • getDisplayItem

      public net.minecraft.world.item.ItemStack getDisplayItem()
    • drop

      public void drop(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.phys.Vec3 pos)
    • give

      public void give(net.minecraft.server.level.ServerPlayer player)