Skip to content

Instantly share code, notes, and snippets.

@MiniDigger
Created June 7, 2018 06:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MiniDigger/f3ae9da03f03bccf84400579f2e574d0 to your computer and use it in GitHub Desktop.
Save MiniDigger/f3ae9da03f03bccf84400579f2e574d0 to your computer and use it in GitHub Desktop.
gsrc/main/java/net/minecraft/state/properties/BlockStateProperties.java
package net.minecraft.state.properties;
import java.util.function.Predicate;
import javax.annotation.Nullable;
import net.minecraft.state.BooleanProperty;
import net.minecraft.state.DirectionProperty;
import net.minecraft.state.EnumProperty;
import net.minecraft.state.IntegerProperty;
import net.minecraft.util.EnumFacing;
public class BlockStateProperties
{
public static final BooleanProperty field_208174_a = BooleanProperty.create("attached");
public static final BooleanProperty field_208176_c = BooleanProperty.create("conditional");
public static final BooleanProperty field_208178_e = BooleanProperty.create("disarmed");
public static final BooleanProperty field_208179_f = BooleanProperty.create("drag");
public static final BooleanProperty field_208180_g = BooleanProperty.create("enabled");
public static final BooleanProperty field_208181_h = BooleanProperty.create("extended");
public static final BooleanProperty field_208182_i = BooleanProperty.create("eye");
public static final BooleanProperty field_208183_j = BooleanProperty.create("falling");
public static final BooleanProperty field_208184_k = BooleanProperty.create("has_bottle_0");
public static final BooleanProperty field_208185_l = BooleanProperty.create("has_bottle_1");
public static final BooleanProperty field_208186_m = BooleanProperty.create("has_bottle_2");
public static final BooleanProperty field_208187_n = BooleanProperty.create("has_record");
public static final BooleanProperty field_208188_o = BooleanProperty.create("inverted");
public static final BooleanProperty field_208189_p = BooleanProperty.create("in_wall");
public static final BooleanProperty field_208190_q = BooleanProperty.create("lit");
public static final BooleanProperty field_208191_r = BooleanProperty.create("locked");
public static final BooleanProperty field_208192_s = BooleanProperty.create("occupied");
public static final BooleanProperty field_208193_t = BooleanProperty.create("open");
public static final BooleanProperty field_208515_s = BooleanProperty.create("persistent");
public static final BooleanProperty field_208194_u = BooleanProperty.create("powered");
public static final BooleanProperty field_208195_v = BooleanProperty.create("short");
public static final BooleanProperty field_208196_w = BooleanProperty.create("snowy");
public static final BooleanProperty field_208197_x = BooleanProperty.create("triggered");
public static final BooleanProperty field_208198_y = BooleanProperty.create("waterlogged");
public static final EnumProperty<EnumFacing.Axis> field_208199_z = EnumProperty.<EnumFacing.Axis>create("axis", EnumFacing.Axis.class, EnumFacing.Axis.X, EnumFacing.Axis.Z);
public static final EnumProperty<EnumFacing.Axis> field_208148_A = EnumProperty.<EnumFacing.Axis>create("axis", EnumFacing.Axis.class);
public static final BooleanProperty field_208149_B = BooleanProperty.create("up");
public static final BooleanProperty field_208150_C = BooleanProperty.create("down");
public static final BooleanProperty field_208151_D = BooleanProperty.create("north");
public static final BooleanProperty field_208152_E = BooleanProperty.create("east");
public static final BooleanProperty field_208153_F = BooleanProperty.create("south");
public static final BooleanProperty field_208154_G = BooleanProperty.create("west");
public static final DirectionProperty field_208155_H = DirectionProperty.func_196962_a("facing", EnumFacing.NORTH, EnumFacing.EAST, EnumFacing.SOUTH, EnumFacing.WEST, EnumFacing.UP, EnumFacing.DOWN);
public static final DirectionProperty field_208156_I = DirectionProperty.create("facing", (p_208125_0_) ->
{
return p_208125_0_ != EnumFacing.UP;
});
public static final DirectionProperty field_208157_J = DirectionProperty.func_196962_a("facing", EnumFacing.Plane.HORIZONTAL.facings());
public static final EnumProperty<AttachFace> field_208158_K = EnumProperty.<AttachFace>create("face", AttachFace.class);
public static final EnumProperty<RedstoneSide> field_208159_L = EnumProperty.<RedstoneSide>create("east", RedstoneSide.class);
public static final EnumProperty<RedstoneSide> field_208160_M = EnumProperty.<RedstoneSide>create("north", RedstoneSide.class);
public static final EnumProperty<RedstoneSide> field_208161_N = EnumProperty.<RedstoneSide>create("south", RedstoneSide.class);
public static final EnumProperty<RedstoneSide> field_208162_O = EnumProperty.<RedstoneSide>create("west", RedstoneSide.class);
public static final EnumProperty<DoubleBlockHalf> field_208163_P = EnumProperty.<DoubleBlockHalf>create("half", DoubleBlockHalf.class);
public static final EnumProperty<Half> field_208164_Q = EnumProperty.<Half>create("half", Half.class);
public static final EnumProperty<RailShape> field_208165_R = EnumProperty.<RailShape>create("shape", RailShape.class);
public static final EnumProperty<RailShape> field_208166_S = EnumProperty.<RailShape>create("shape", RailShape.class, new Predicate<RailShape>()
{
public boolean test(@Nullable RailShape p_test_1_)
{
return p_test_1_ != RailShape.NORTH_EAST && p_test_1_ != RailShape.NORTH_WEST && p_test_1_ != RailShape.SOUTH_EAST && p_test_1_ != RailShape.SOUTH_WEST;
}
});
public static final IntegerProperty field_208167_T = IntegerProperty.create("age", 0, 2);
public static final IntegerProperty field_208168_U = IntegerProperty.create("age", 0, 3);
public static final IntegerProperty field_208169_V = IntegerProperty.create("age", 0, 5);
public static final IntegerProperty field_208170_W = IntegerProperty.create("age", 0, 7);
public static final IntegerProperty field_208171_X = IntegerProperty.create("age", 0, 15);
public static final IntegerProperty field_208172_Y = IntegerProperty.create("age", 0, 25);
public static final IntegerProperty field_208173_Z = IntegerProperty.create("bites", 0, 6);
public static final IntegerProperty field_208126_aa = IntegerProperty.create("delay", 1, 4);
public static final IntegerProperty field_208514_aa = IntegerProperty.create("distance", 1, 7);
public static final IntegerProperty field_208127_ab = IntegerProperty.create("eggs", 1, 4);
public static final IntegerProperty field_208128_ac = IntegerProperty.create("hatch", 0, 2);
public static final IntegerProperty field_208129_ad = IntegerProperty.create("layers", 1, 8);
public static final IntegerProperty field_208130_ae = IntegerProperty.create("level", 0, 3);
public static final IntegerProperty field_208131_af = IntegerProperty.create("level", 1, 8);
public static final IntegerProperty field_208132_ag = IntegerProperty.create("level", 0, 15);
public static final IntegerProperty field_208133_ah = IntegerProperty.create("moisture", 0, 7);
public static final IntegerProperty field_208134_ai = IntegerProperty.create("note", 0, 24);
public static final IntegerProperty field_208135_aj = IntegerProperty.create("pickles", 1, 4);
public static final IntegerProperty field_208136_ak = IntegerProperty.create("power", 0, 15);
public static final IntegerProperty field_208137_al = IntegerProperty.create("stage", 0, 1);
public static final IntegerProperty field_208138_am = IntegerProperty.create("rotation", 0, 15);
public static final EnumProperty<BedPart> field_208139_an = EnumProperty.<BedPart>create("part", BedPart.class);
public static final EnumProperty<ChestType> field_208140_ao = EnumProperty.<ChestType>create("type", ChestType.class);
public static final EnumProperty<ComparatorMode> field_208141_ap = EnumProperty.<ComparatorMode>create("mode", ComparatorMode.class);
public static final EnumProperty<DoorHingeSide> field_208142_aq = EnumProperty.<DoorHingeSide>create("hinge", DoorHingeSide.class);
public static final EnumProperty<NoteBlockInstrument> field_208143_ar = EnumProperty.<NoteBlockInstrument>create("instrument", NoteBlockInstrument.class);
public static final EnumProperty<PistonType> field_208144_as = EnumProperty.<PistonType>create("type", PistonType.class);
public static final EnumProperty<SlabType> field_208145_at = EnumProperty.<SlabType>create("type", SlabType.class);
public static final EnumProperty<StairsShape> field_208146_au = EnumProperty.<StairsShape>create("shape", StairsShape.class);
public static final EnumProperty<StructureMode> field_208147_av = EnumProperty.<StructureMode>create("mode", StructureMode.class);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment