Package in.northwestw.shortcircuit.data
Class TruthTable
java.lang.Object
in.northwestw.shortcircuit.data.TruthTable
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intfinal intfinal List<RelativeDirection> final List<RelativeDirection> -
Constructor Summary
ConstructorsConstructorDescriptionTruthTable(List<RelativeDirection> inputs, List<RelativeDirection> outputs, Map<Integer, Integer> signals, int defaultValue, int bits) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisSame(List<RelativeDirection> inputs, List<RelativeDirection> outputs, Map<Integer, Integer> signals, int defaultValue, int bits) static TruthTableload(net.minecraft.nbt.CompoundTag tag) net.minecraft.nbt.CompoundTagsave(net.minecraft.nbt.CompoundTag tag)
-
Field Details
-
inputs
-
outputs
-
signals
-
defaultValue
public final int defaultValue -
bits
public final int bits
-
-
Constructor Details
-
TruthTable
public TruthTable(List<RelativeDirection> inputs, List<RelativeDirection> outputs, Map<Integer, Integer> signals, int defaultValue, int bits)
-
-
Method Details
-
load
-
save
public net.minecraft.nbt.CompoundTag save(net.minecraft.nbt.CompoundTag tag) -
isSame
public boolean isSame(List<RelativeDirection> inputs, List<RelativeDirection> outputs, Map<Integer, Integer> signals, int defaultValue, int bits)
-