mirror of
https://github.com/GTNewHorizons/StructureLib.git
synced 2026-10-26 14:23:56 +00:00
Allow deny/allow by ExtendedFacing directly
This commit is contained in:
1 parent
3573185ee2
commit
671da2dc1a
1 file changed
+10
@@ -48,6 +48,16 @@ public interface IAlignmentLimits {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder deny(ExtendedFacing o) {
|
||||
validStates[o.getIndex()] = false;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder allow(ExtendedFacing o) {
|
||||
validStates[o.getIndex()] = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder deny(Rotation fd) {
|
||||
ExtendedFacing.getAllWith(fd).stream().mapToInt(ExtendedFacing::getIndex).forEach(v -> validStates[v] = false);
|
||||
return this;
|
||||
|
||||
Reference in new issue
Block a user