package net.minecraft.block.properties;
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;
import net.minecraft.util.EnumFacing;
public class PropertyDirection extends PropertyEnum
{
private static final String __OBFID = "CL_00002016";
protected PropertyDirection(String name, Collection values)
{
super(name, EnumFacing.class, values);
}
/**
* Create a new PropertyDirection with the given name
*/
public static PropertyDirection create(String name)
{
return create(name, Predicates.alwaysTrue());
}
/**
* Create a new PropertyDirection with all directions that match the given Predicate
*/
public static PropertyDirection create(String name, Predicate filter)
{
return create(name, Collections2.filter(Lists.newArrayList(EnumFacing.values()), filter));
}
/**
* Create a new PropertyDirection for the given direction values
*/
public static PropertyDirection create(String name, Collection values)
{
return new PropertyDirection(name, values);
}
}