mirror of
https://github.com/GTNewHorizons/Postea.git
synced 2026-11-24 05:54:31 +00:00
26 lines
707 B
Java
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;
|
|
}
|
|
}
|