mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-05-20 04:24:02 +02:00
ddc846d860
- Relevant Mod files - Relevant Classes - Resources - Added Symmetry Wand from TMA
61 lines
1.2 KiB
Java
61 lines
1.2 KiB
Java
package com.simibubi.create.item.symmetry;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
import com.google.common.collect.ImmutableList;
|
|
|
|
import net.minecraft.block.BlockState;
|
|
import net.minecraft.util.IStringSerializable;
|
|
import net.minecraft.util.math.BlockPos;
|
|
import net.minecraft.util.math.Vec3d;
|
|
|
|
public class SymmetryEmptySlot extends SymmetryElement {
|
|
|
|
public static enum Align implements IStringSerializable {
|
|
None("none");
|
|
|
|
private final String name;
|
|
private Align(String name) { this.name = name; }
|
|
@Override public String getName() { return name; }
|
|
@Override public String toString() { return name; }
|
|
}
|
|
|
|
public SymmetryEmptySlot(Vec3d pos) {
|
|
super(pos);
|
|
orientation = Align.None;
|
|
}
|
|
|
|
@Override
|
|
protected void setOrientation() {
|
|
}
|
|
|
|
@Override
|
|
public void setOrientation(int index) {
|
|
this.orientation = Align.values()[index];
|
|
orientationIndex = index;
|
|
}
|
|
|
|
@Override
|
|
public Map<BlockPos, BlockState> process(BlockPos position, BlockState block) {
|
|
return new HashMap<>();
|
|
}
|
|
|
|
@Override
|
|
public String typeName() {
|
|
return EMPTY;
|
|
}
|
|
|
|
@Override
|
|
public BlockState getModel() {
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public List<String> getAlignToolTips() {
|
|
return ImmutableList.of();
|
|
}
|
|
|
|
}
|