Skip to content

EnergyItem

youyihj edited this page Oct 12, 2020 · 2 revisions

EnergyItem

ZenUtils allow ContentTweaker to add item with RF!

Importing the package

You'd better import the package to avoid errors and write script easier.

import mods.zenutils.cotx.EnergyItem;

Creating an instance

You can simply use VanillaFactory.

VanillaFactory.createEnergyItem(String unlocalizedName, int capacity, int maxReceive, int maxExtract)

Expansion

EnergyItem extends ExpandItem. That means all Methods and ZenProperties that are available for Items are also available for energy items!

ZenProperties

It doesn't have special ZenProperties own.

Clone this wiki locally