use of net.minecraft.util.IItemProvider in project BluePower by Qmunity.
the class TileItemDetector method load.
/**
* This function gets called whenever the world/chunk loads
*/
@Override
public void load(BlockState blockState, CompoundNBT tCompound) {
super.load(blockState, tCompound);
for (int i = 0; i < 9; i++) {
CompoundNBT tc = tCompound.getCompound("inventory" + i);
inventory.set(i, new ItemStack((IItemProvider) tc));
}
mode = tCompound.getByte("mode");
fuzzySetting = tCompound.getByte("fuzzySetting");
savedPulses = tCompound.getInt("savedPulses");
}
use of net.minecraft.util.IItemProvider in project BluePower by Qmunity.
the class TileRelay method load.
/**
* This function gets called whenever the world/chunk loads
*/
@Override
public void load(BlockState blockState, CompoundNBT tCompound) {
super.load(blockState, tCompound);
for (int i = 0; i < 9; i++) {
CompoundNBT tc = tCompound.getCompound("inventory" + i);
inventory.set(i, new ItemStack((IItemProvider) tc));
}
}
use of net.minecraft.util.IItemProvider in project BluePower by Qmunity.
the class TileFilter method load.
/**
* This function gets called whenever the world/chunk loads
*/
@Override
public void load(BlockState blockState, CompoundNBT tCompound) {
super.load(blockState, tCompound);
for (int i = 0; i < 9; i++) {
CompoundNBT tc = tCompound.getCompound("inventory" + i);
inventory.set(i, new ItemStack((IItemProvider) tc));
}
filterColor = TubeColor.values()[tCompound.getByte("filterColor")];
fuzzySetting = tCompound.getByte("fuzzySetting");
}
use of net.minecraft.util.IItemProvider in project BluePower by Qmunity.
the class TileEjector method load.
/**
* This function gets called whenever the world/chunk loads
*/
@Override
public void load(BlockState blockState, CompoundNBT tCompound) {
super.load(blockState, tCompound);
for (int i = 0; i < 9; i++) {
CompoundNBT tc = tCompound.getCompound("inventory" + i);
inventory.set(i, new ItemStack((IItemProvider) tc));
}
}
Aggregations