mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-24 22:04:23 +00:00
Class Registries are merged together into one. All subprojects are also merged into one. It's probably possible to split stuff into multiple source sets and not merging the registries, but I'm just too lazy for that.
25 lines
646 B
Java
25 lines
646 B
Java
/*
|
|
* To change this license header, choose License Headers in Project Properties.
|
|
* To change this template file, choose Tools | Templates
|
|
* and open the template in the editor.
|
|
*/
|
|
|
|
package minetweaker.expand;
|
|
|
|
import minetweaker.api.item.IItemStack;
|
|
import minetweaker.api.item.WeightedItemStack;
|
|
import stanhebben.zenscript.annotations.ZenCaster;
|
|
import stanhebben.zenscript.annotations.ZenExpansion;
|
|
|
|
/**
|
|
*
|
|
* @author Stan
|
|
*/
|
|
@ZenExpansion("minetweaker.item.IItemStack")
|
|
public class ExpandItemStack {
|
|
@ZenCaster
|
|
public static WeightedItemStack asWeightedItemStack(IItemStack value) {
|
|
return new WeightedItemStack(value, 1.0f);
|
|
}
|
|
}
|