Files
Postea/src/main/java/com/gtnewhorizons/postea/utility/BlockInfo.java
T
2024-01-15 15:10:18 +00:00

26 lines
707 B
Java

package com.gtnewhorizons.postea.utility;
import java.util.function.Function;
import net.minecraft.block.Block;
import net.minecraft.nbt.NBTTagCompound;
public final class BlockInfo {
public final Block block;
public final int metadata;
public final Function<NBTTagCompound, NBTTagCompound> tileTransformer;
public BlockInfo(Block block, int metadata, Function<NBTTagCompound, NBTTagCompound> tileTransformer) {
this.block = block;
this.metadata = metadata;
this.tileTransformer = tileTransformer;
}
public BlockInfo(Block block, int metadata) {
this.block = block;
this.metadata = metadata;
this.tileTransformer = null;
}
}