net.minecraft.server.BlockStateDirection Maven / Gradle / Ivy
package net.minecraft.server;
import com.google.common.base.Predicate;
import com.google.common.base.Predicates;
import com.google.common.collect.Collections2;
import com.google.common.collect.Lists;
import java.util.Collection;
public class BlockStateDirection extends BlockStateEnum {
protected BlockStateDirection(String s, Collection collection) {
super(s, EnumDirection.class, collection);
}
public static BlockStateDirection of(String s) {
return of(s, Predicates.alwaysTrue());
}
public static BlockStateDirection of(String s, Predicate predicate) {
return a(s, Collections2.filter(Lists.newArrayList(EnumDirection.values()), predicate));
}
public static BlockStateDirection a(String s, Collection collection) {
return new BlockStateDirection(s, collection);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy