public static class DropSet.Drop
extends java.lang.Object
Constructor and Description |
---|
Drop(int weight,
java.lang.String name,
net.minecraft.item.ItemStack item,
boolean ephemeral,
java.lang.String... commands) |
Drop(com.google.gson.JsonObject json,
com.google.gson.JsonDeserializationContext ctx) |
Drop(net.minecraft.network.PacketBuffer buf) |
Modifier and Type | Method and Description |
---|---|
void |
drop(net.minecraft.entity.player.ServerPlayerEntity player,
net.minecraft.util.math.vector.Vector3d pos) |
net.minecraft.item.ItemStack |
getDisplayItem() |
java.lang.String |
getName() |
int |
getWeight() |
void |
give(net.minecraft.entity.player.ServerPlayerEntity player) |
void |
toBuffer(net.minecraft.network.PacketBuffer buf) |
public Drop(int weight, java.lang.String name, net.minecraft.item.ItemStack item, boolean ephemeral, java.lang.String... commands)
public Drop(com.google.gson.JsonObject json, com.google.gson.JsonDeserializationContext ctx)
public Drop(net.minecraft.network.PacketBuffer buf)
public void toBuffer(net.minecraft.network.PacketBuffer buf)
public int getWeight()
public java.lang.String getName()
public net.minecraft.item.ItemStack getDisplayItem()
public void drop(net.minecraft.entity.player.ServerPlayerEntity player, net.minecraft.util.math.vector.Vector3d pos)
public void give(net.minecraft.entity.player.ServerPlayerEntity player)