ChestFile constructor
ChestFile()
Implementation
ChestFile(
this.hasRecipes,
this.recipeSource,
this.recipeResultSource,
this.placeholder,
this.guiModel,
this.useBarrel,
) {
if (placeholder != null && placeholder!.tag == null) {
placeholder = placeholder!.copyWith(nbt: {});
}
if (guiModel != null) {
guiModel = guiModel!.copyWith(
nbt: guiModel!.tag ?? {},
slot: guiModel!.slot ?? Slot.chest(3, 5),
);
}
}