Modifier and Type | Field and Description |
---|---|
JsonItemStack |
item |
net.minecraft.item.ItemStack |
itemStack |
int |
maxQuantity |
int |
minQuantity |
static java.lang.String |
TYPE_ID_ITEM |
anticondition, chance, compositeCondition, condition, groupSpawnSettings, GSON, locationTypes, percentage, rarity, rarityMultipliers, requiredSpace, set, spawnInfoTypes, stringLocationTypes, tags, typeID
Constructor and Description |
---|
SpawnInfoItem() |
Modifier and Type | Method and Description |
---|---|
SpawnAction<? extends net.minecraft.entity.item.ItemEntity> |
construct(AbstractSpawner spawner,
SpawnLocation spawnLocation)
Constructs a
SpawnAction based on the information in this SpawnInfo, the AbstractSpawner , and the SpawnLocation . |
void |
onImport() |
java.lang.String |
toString()
Gets the display String for use in /checkspawns.
|
calculateNominalRarity, fits, getAdjustedRarity, onExport
public static final java.lang.String TYPE_ID_ITEM
public JsonItemStack item
public int minQuantity
public int maxQuantity
public transient net.minecraft.item.ItemStack itemStack
public SpawnAction<? extends net.minecraft.entity.item.ItemEntity> construct(AbstractSpawner spawner, SpawnLocation spawnLocation)
SpawnInfo
SpawnAction
based on the information in this SpawnInfo, the AbstractSpawner
, and the SpawnLocation
.