Package net.minecraft.world.level.block.state.properties
Part 1/1
AttachFace
- Full name:
net.minecraft.world.level.block.state.properties.AttachFace - Package:
net.minecraft.world.level.block.state.properties - Source:
common—net/minecraft/world/level/block/state/properties/AttachFace.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.level.block.state.properties.AttachFace#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/AttachFace.java:16 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BambooLeaves
- Full name:
net.minecraft.world.level.block.state.properties.BambooLeaves - Package:
net.minecraft.world.level.block.state.properties - Source:
common—net/minecraft/world/level/block/state/properties/BambooLeaves.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.level.block.state.properties.BambooLeaves#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/BambooLeaves.java:21 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.BambooLeaves#toString()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/BambooLeaves.java:16 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ BambooLeaves
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BedPart
- Full name:
net.minecraft.world.level.block.state.properties.BedPart - Package:
net.minecraft.world.level.block.state.properties - Source:
common—net/minecraft/world/level/block/state/properties/BedPart.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.level.block.state.properties.BedPart#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/BedPart.java:20 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.BedPart#toString()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/BedPart.java:15 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ BedPart
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BellAttachType
- Full name:
net.minecraft.world.level.block.state.properties.BellAttachType - Package:
net.minecraft.world.level.block.state.properties - Source:
common—net/minecraft/world/level/block/state/properties/BellAttachType.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.level.block.state.properties.BellAttachType#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/BellAttachType.java:17 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BlockSetType
- Full name:
net.minecraft.world.level.block.state.properties.BlockSetType - Package:
net.minecraft.world.level.block.state.properties - Source:
common—net/minecraft/world/level/block/state/properties/BlockSetType.java - Type:
record - Modifiers:
public
net.minecraft.world.level.block.state.properties.BlockSetType#BlockSetType(String)
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/BlockSetType.java:200 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlockSetType ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.BlockSetType#values()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/BlockSetType.java:224 - Modifiers:
public static - Return:
Stream<BlockSetType>
คืออะไร
ดำเนินการ values ตาม implementation ของ BlockSetType
ทำงานยังไง
เรียกต่อ: stream(). คืนค่า: TYPES.values().stream().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BooleanProperty
- Full name:
net.minecraft.world.level.block.state.properties.BooleanProperty - Package:
net.minecraft.world.level.block.state.properties - Source:
common—net/minecraft/world/level/block/state/properties/BooleanProperty.java - Type:
class - Modifiers:
public final - Extends:
Property<Boolean>
net.minecraft.world.level.block.state.properties.BooleanProperty#create(String)
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/BooleanProperty.java:20 - Modifiers:
public static - Return:
BooleanProperty
คืออะไร
สร้าง create
ทำงานยังไง
สร้างออบเจ็กต์: BooleanProperty. คืนค่า: new BooleanProperty(string).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.BooleanProperty#getInternalIndex(Boolean)
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/BooleanProperty.java:37 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Internal Index
ทำงานยังไง
คืนค่า: boolean_ ? 0 : 1.
Parameters
Boolean boolean_
ตัวอย่างใช้งาน
BooleanProperty instance = ...;
Boolean boolean_ = ...;
int result = instance.getInternalIndex(boolean_);
net.minecraft.world.level.block.state.properties.BooleanProperty#getName(Boolean)
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/BooleanProperty.java:33 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Name
ทำงานยังไง
เรียกต่อ: toString(). คืนค่า: boolean_.toString().
Parameters
Boolean boolean_
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.BooleanProperty#getPossibleValues()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/BooleanProperty.java:15 - Modifiers:
public - Return:
List<Boolean>
คืออะไร
อ่านค่า Possible Values
ทำงานยังไง
คืนค่า: VALUES.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.BooleanProperty#getValue(String)
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/BooleanProperty.java:24 - Modifiers:
public - Return:
Optional<Boolean>
คืออะไร
อ่านค่า Value
ทำงานยังไง
แยกกรณีด้วย switch. เรียกต่อ: of(), empty(). คืนค่า: switch (string) { case "true" -> Optional.of(true).
Parameters
String string
ตัวอย่างใช้งาน
ChestType
- Full name:
net.minecraft.world.level.block.state.properties.ChestType - Package:
net.minecraft.world.level.block.state.properties - Source:
common—net/minecraft/world/level/block/state/properties/ChestType.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.level.block.state.properties.ChestType#getOpposite()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/ChestType.java:21 - Modifiers:
public - Return:
ChestType
คืออะไร
อ่านค่า Opposite
ทำงานยังไง
แยกกรณีด้วย switch. คืนค่า: switch (this) { case SINGLE -> SINGLE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.ChestType#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/ChestType.java:16 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ComparatorMode
- Full name:
net.minecraft.world.level.block.state.properties.ComparatorMode - Package:
net.minecraft.world.level.block.state.properties - Source:
common—net/minecraft/world/level/block/state/properties/ComparatorMode.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.level.block.state.properties.ComparatorMode#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/ComparatorMode.java:20 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.ComparatorMode#toString()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/ComparatorMode.java:15 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ ComparatorMode
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DoorHingeSide
- Full name:
net.minecraft.world.level.block.state.properties.DoorHingeSide - Package:
net.minecraft.world.level.block.state.properties - Source:
common—net/minecraft/world/level/block/state/properties/DoorHingeSide.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.level.block.state.properties.DoorHingeSide#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/DoorHingeSide.java:14 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this == LEFT ? "left" : "right".
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.DoorHingeSide#toString()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/DoorHingeSide.java:9 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ DoorHingeSide
ทำงานยังไง
เรียกต่อ: getSerializedName(). คืนค่า: this.getSerializedName().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DoubleBlockHalf
- Full name:
net.minecraft.world.level.block.state.properties.DoubleBlockHalf - Package:
net.minecraft.world.level.block.state.properties - Source:
common—net/minecraft/world/level/block/state/properties/DoubleBlockHalf.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.level.block.state.properties.DoubleBlockHalf#getDirectionToOther()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/DoubleBlockHalf.java:16 - Modifiers:
public - Return:
Direction
คืออะไร
อ่านค่า Direction To Other
ทำงานยังไง
คืนค่า: this.directionToOther.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.DoubleBlockHalf#getOtherHalf()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/DoubleBlockHalf.java:30 - Modifiers:
public - Return:
DoubleBlockHalf
คืออะไร
อ่านค่า Other Half
ทำงานยังไง
คืนค่า: this == UPPER ? LOWER : UPPER.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.DoubleBlockHalf#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/DoubleBlockHalf.java:25 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this == UPPER ? "upper" : "lower".
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.DoubleBlockHalf#toString()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/DoubleBlockHalf.java:20 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ DoubleBlockHalf
ทำงานยังไง
เรียกต่อ: getSerializedName(). คืนค่า: this.getSerializedName().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DripstoneThickness
- Full name:
net.minecraft.world.level.block.state.properties.DripstoneThickness - Package:
net.minecraft.world.level.block.state.properties - Source:
common—net/minecraft/world/level/block/state/properties/DripstoneThickness.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.level.block.state.properties.DripstoneThickness#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/DripstoneThickness.java:23 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.DripstoneThickness#toString()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/DripstoneThickness.java:18 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ DripstoneThickness
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
EnumProperty
- Full name:
net.minecraft.world.level.block.state.properties.EnumProperty - Package:
net.minecraft.world.level.block.state.properties - Source:
common—net/minecraft/world/level/block/state/properties/EnumProperty.java - Type:
class - Modifiers:
public final - Extends:
Property<T>
net.minecraft.world.level.block.state.properties.EnumProperty#create(String,Class<T>)
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/EnumProperty.java:75 - Modifiers:
public static - Return:
EnumProperty<T>
คืออะไร
สร้าง create
ทำงานยังไง
คืนค่า: create(string, class_, enum_ -> true).
Parameters
String stringClass<T> class_
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.EnumProperty#create(String,Class<T>,List<T>)
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/EnumProperty.java:88 - Modifiers:
public static - Return:
EnumProperty<T>
คืออะไร
สร้าง create
ทำงานยังไง
สร้างออบเจ็กต์: EnumProperty<>. คืนค่า: new EnumProperty<>(string, class_, list).
Parameters
String stringClass<T> class_List<T> list
ตัวอย่างใช้งาน
Class<T> class_ = ...;
List<T> list = ...;
EnumProperty<T> result = EnumProperty.create("value", class_, list);
net.minecraft.world.level.block.state.properties.EnumProperty#create(String,Class<T>,Predicate<T>)
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/EnumProperty.java:79 - Modifiers:
public static - Return:
EnumProperty<T>
คืออะไร
สร้าง create
ทำงานยังไง
เรียกต่อ: stream(), getEnumConstants(), filter(), collect(), toList(). คืนค่า: create(string, class_, Arrays.<T>stream(class_.getEnumConstants()).filter(predicate).collect(Collectors.toList())).
Parameters
String stringClass<T> class_Predicate<T> predicate
ตัวอย่างใช้งาน
Class<T> class_ = ...;
Predicate<T> predicate = ...;
EnumProperty<T> result = EnumProperty.create("value", class_, predicate);
net.minecraft.world.level.block.state.properties.EnumProperty#create(String,Class<T>,T[])
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/EnumProperty.java:83 - Modifiers:
public static - Return:
EnumProperty<T>
คืออะไร
สร้าง create
ทำงานยังไง
เรียกต่อ: of(). คืนค่า: create(string, class_, List.of(enums)).
Parameters
String stringClass<T> class_T[] enums
ตัวอย่างใช้งาน
Class<T> class_ = ...;
T[] enums = ...;
EnumProperty<T> result = EnumProperty.create("value", class_, enums);
net.minecraft.world.level.block.state.properties.EnumProperty#equals(Object)
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/EnumProperty.java:60 - Modifiers:
public - Return:
boolean
คืออะไร
เปรียบเทียบความเท่ากัน equals
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. มีจุด return อย่างน้อย 2 จุด.
Parameters
Object object
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.EnumProperty#generateHashCode()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/EnumProperty.java:69 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ generateHashCode ตาม implementation ของ EnumProperty
ทำงานยังไง
เรียกต่อ: hashCode(). คืนค่า: 31 * i + this.values.hashCode().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.EnumProperty#getInternalIndex(T)
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/EnumProperty.java:56 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Internal Index
ทำงานยังไง
เรียกต่อ: ordinal(). คืนค่า: this.ordinalToIndex[enum_.ordinal()].
Parameters
T enum_
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.EnumProperty#getName(T)
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/EnumProperty.java:52 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Name
ทำงานยังไง
เรียกต่อ: getSerializedName(). คืนค่า: enum_.getSerializedName().
Parameters
T enum_
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.EnumProperty#getPossibleValues()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/EnumProperty.java:42 - Modifiers:
public - Return:
List<T>
คืออะไร
อ่านค่า Possible Values
ทำงานยังไง
คืนค่า: this.values.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.EnumProperty#getValue(String)
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/EnumProperty.java:47 - Modifiers:
public - Return:
Optional<T>
คืออะไร
อ่านค่า Value
ทำงานยังไง
เรียกต่อ: ofNullable(), get(). คืนค่า: Optional.ofNullable(this.names.get(string)).
Parameters
String string
ตัวอย่างใช้งาน
Half
- Full name:
net.minecraft.world.level.block.state.properties.Half - Package:
net.minecraft.world.level.block.state.properties - Source:
common—net/minecraft/world/level/block/state/properties/Half.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.level.block.state.properties.Half#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/Half.java:20 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.Half#toString()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/Half.java:15 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ Half
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
IntegerProperty
- Full name:
net.minecraft.world.level.block.state.properties.IntegerProperty - Package:
net.minecraft.world.level.block.state.properties - Source:
common—net/minecraft/world/level/block/state/properties/IntegerProperty.java - Type:
class - Modifiers:
public final - Extends:
Property<Integer>
net.minecraft.world.level.block.state.properties.IntegerProperty#create(String,int,int)
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/IntegerProperty.java:47 - Modifiers:
public static - Return:
IntegerProperty
คืออะไร
สร้าง create
ทำงานยังไง
สร้างออบเจ็กต์: IntegerProperty. คืนค่า: new IntegerProperty(string, i, j).
Parameters
String stringint iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.IntegerProperty#equals(Object)
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/IntegerProperty.java:33 - Modifiers:
public - Return:
boolean
คืออะไร
เปรียบเทียบความเท่ากัน equals
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. มีจุด return อย่างน้อย 2 จุด.
Parameters
Object object
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.IntegerProperty#generateHashCode()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/IntegerProperty.java:42 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ generateHashCode ตาม implementation ของ IntegerProperty
ทำงานยังไง
เรียกต่อ: hashCode(). คืนค่า: 31 * super.generateHashCode() + this.values.hashCode().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.IntegerProperty#getInternalIndex(Integer)
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/IntegerProperty.java:65 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Internal Index
ทำงานยังไง
คืนค่า: integer <= this.max ? integer - this.min : -1.
Parameters
Integer integer
ตัวอย่างใช้งาน
IntegerProperty instance = ...;
Integer integer = ...;
int result = instance.getInternalIndex(integer);
net.minecraft.world.level.block.state.properties.IntegerProperty#getName(Integer)
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/IntegerProperty.java:61 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Name
ทำงานยังไง
เรียกต่อ: toString(). คืนค่า: integer.toString().
Parameters
Integer integer
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.IntegerProperty#getPossibleValues()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/IntegerProperty.java:28 - Modifiers:
public - Return:
List<Integer>
คืออะไร
อ่านค่า Possible Values
ทำงานยังไง
คืนค่า: this.values.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.IntegerProperty#getValue(String)
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/IntegerProperty.java:51 - Modifiers:
public - Return:
Optional<Integer>
คืออะไร
อ่านค่า Value
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: parseInt(), of(), empty(). มีจุด return อย่างน้อย 2 จุด.
Parameters
String string
ตัวอย่างใช้งาน
NoteBlockInstrument
- Full name:
net.minecraft.world.level.block.state.properties.NoteBlockInstrument - Package:
net.minecraft.world.level.block.state.properties - Source:
common—net/minecraft/world/level/block/state/properties/NoteBlockInstrument.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.level.block.state.properties.NoteBlockInstrument#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/NoteBlockInstrument.java:43 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.NoteBlockInstrument#getSoundEvent()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/NoteBlockInstrument.java:48 - Modifiers:
public - Return:
Holder<SoundEvent>
คืออะไร
อ่านค่า Sound Event
ทำงานยังไง
คืนค่า: this.soundEvent.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.NoteBlockInstrument#hasCustomSound()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/NoteBlockInstrument.java:56 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Custom Sound
ทำงานยังไง
แก้ state: type. คืนค่า: this.type == NoteBlockInstrument.Type.CUSTOM.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.NoteBlockInstrument#isTunable()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/NoteBlockInstrument.java:52 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Tunable
ทำงานยังไง
แก้ state: type. คืนค่า: this.type == NoteBlockInstrument.Type.BASE_BLOCK.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.NoteBlockInstrument#worksAboveNoteBlock()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/NoteBlockInstrument.java:60 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ worksAboveNoteBlock ตาม implementation ของ NoteBlockInstrument
ทำงานยังไง
คืนค่า: this.type != NoteBlockInstrument.Type.BASE_BLOCK.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
PistonType
- Full name:
net.minecraft.world.level.block.state.properties.PistonType - Package:
net.minecraft.world.level.block.state.properties - Source:
common—net/minecraft/world/level/block/state/properties/PistonType.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.level.block.state.properties.PistonType#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/PistonType.java:20 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.PistonType#toString()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/PistonType.java:15 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ PistonType
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Property
- Full name:
net.minecraft.world.level.block.state.properties.Property - Package:
net.minecraft.world.level.block.state.properties - Source:
common—net/minecraft/world/level/block/state/properties/Property.java - Type:
class - Modifiers:
public abstract
net.minecraft.world.level.block.state.properties.Property#codec()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/Property.java:44 - Modifiers:
public - Return:
Codec<T>
คืออะไร
ดำเนินการ codec ตาม implementation ของ Property
ทำงานยังไง
คืนค่า: this.codec.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.Property#equals(Object)
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/Property.java:73 - Modifiers:
public - Return:
boolean
คืออะไร
เปรียบเทียบความเท่ากัน equals
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. มีจุด return อย่างน้อย 2 จุด.
Parameters
Object object
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.Property#generateHashCode()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/Property.java:91 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ generateHashCode ตาม implementation ของ Property
ทำงานยังไง
เรียกต่อ: hashCode(). คืนค่า: 31 * this.clazz.hashCode() + this.name.hashCode().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.Property#getAllValues()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/Property.java:40 - Modifiers:
public - Return:
Stream<Property.Value<T>>
คืออะไร
อ่านค่า All Values
ทำงานยังไง
เรียกต่อ: getPossibleValues(), stream(), map(). คืนค่า: this.getPossibleValues().stream().map(this::value).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.Property#getInternalIndex(T)
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/Property.java:66 - Modifiers:
public abstract - Return:
int
คืออะไร
อ่านค่า Internal Index
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
T comparable
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.Property#getName()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/Property.java:52 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.Property#getName(T)
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/Property.java:62 - Modifiers:
public abstract - Return:
String
คืออะไร
อ่านค่า Name
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
T comparable
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.Property#getPossibleValues()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/Property.java:60 - Modifiers:
public abstract - Return:
List<T>
คืออะไร
อ่านค่า Possible Values
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.Property#getValue(String)
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/Property.java:64 - Modifiers:
public abstract - Return:
Optional<T>
คืออะไร
อ่านค่า Value
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.Property#getValueClass()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/Property.java:56 - Modifiers:
public - Return:
Class<T>
คืออะไร
อ่านค่า Value Class
ทำงานยังไง
คืนค่า: this.clazz.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.Property#hashCode()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/Property.java:82 - Modifiers:
public final - Return:
int
คืออะไร
ดำเนินการ hashCode ตาม implementation ของ Property
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: hashCode. เรียกต่อ: generateHashCode(). คืนค่า: this.hashCode.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.Property#parseValue(DynamicOps<U>,S,U)
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/Property.java:95 - Modifiers:
public - Return:
DataResult<S>
คืออะไร
แปลง/วิเคราะห์ข้อมูล Value
ทำงานยังไง
เรียกต่อ: parse(), map(), setValue(), setPartial(). คืนค่า: dataResult.<S>map(comparable -> stateHolder.setValue(this, comparable)).setPartial(stateHolder).
Parameters
DynamicOps<U> dynamicOpsS stateHolderU object
ตัวอย่างใช้งาน
Property instance = ...;
DynamicOps<U> dynamicOps = ...;
S stateHolder = ...;
U object = ...;
DataResult<S> result = instance.parseValue(dynamicOps, stateHolder, object);
net.minecraft.world.level.block.state.properties.Property#Property(String,Class<T>)
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/Property.java:27 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Property ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: clazz, name.
Parameters
String stringClass<T> class_
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.Property#toString()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/Property.java:68 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ Property
ทำงานยังไง
เรียกต่อ: toStringHelper(), add(), getPossibleValues(). คืนค่า: MoreObjects.toStringHelper(this).add("name", this.name).add("clazz", this.clazz).add("values", this.getPossibleValues()).toString().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.Property#value(StateHolder<?, ?>)
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/Property.java:36 - Modifiers:
public - Return:
Property.Value<T>
คืออะไร
ดำเนินการ value ตาม implementation ของ Property
ทำงานยังไง
เรียกต่อ: getValue(). สร้างออบเจ็กต์: Property.Value<>. คืนค่า: new Property.Value<>(this, stateHolder.getValue(this)).
Parameters
StateHolder<?, ?> stateHolder
ตัวอย่างใช้งาน
Property instance = ...;
StateHolder<?, ?> stateHolder = ...;
Property.Value<T> result = instance.value(stateHolder);
net.minecraft.world.level.block.state.properties.Property#value(T)
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/Property.java:32 - Modifiers:
public - Return:
Property.Value<T>
คืออะไร
ดำเนินการ value ตาม implementation ของ Property
ทำงานยังไง
สร้างออบเจ็กต์: Property.Value<>. คืนค่า: new Property.Value<>(this, comparable).
Parameters
T comparable
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.Property#valueCodec()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/Property.java:48 - Modifiers:
public - Return:
Codec<Property.Value<T>>
คืออะไร
ดำเนินการ valueCodec ตาม implementation ของ Property
ทำงานยังไง
คืนค่า: this.valueCodec.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Property$Value
- Full name:
net.minecraft.world.level.block.state.properties.Property$Value - Package:
net.minecraft.world.level.block.state.properties - Source:
common—net/minecraft/world/level/block/state/properties/Property.java - Type:
record - Modifiers:
public
net.minecraft.world.level.block.state.properties.Property$Value#toString()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/Property.java:107 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ Property$Value
ทำงานยังไง
เรียกต่อ: getName(). คืนค่า: this.property.getName() + "=" + this.property.getName(this.value).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.Property$Value#Value(Property<T>,T)
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/Property.java:101 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Property.Value ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getPossibleValues(), contains(). สร้างออบเจ็กต์: IllegalArgumentException.
Parameters
Property<T> propertyT value
ตัวอย่างใช้งาน
Property<T> property = ...;
T value = ...;
Property.Value instance = new Property.Value(property, value);
RailShape
- Full name:
net.minecraft.world.level.block.state.properties.RailShape - Package:
net.minecraft.world.level.block.state.properties - Source:
common—net/minecraft/world/level/block/state/properties/RailShape.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.level.block.state.properties.RailShape#getName()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/RailShape.java:23 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.RailShape#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/RailShape.java:36 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.RailShape#isSlope()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/RailShape.java:32 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Slope
ทำงานยังไง
คืนค่า: this == ASCENDING_NORTH || this == ASCENDING_EAST || this == ASCENDING_SOUTH || this == ASCENDING_WEST.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.RailShape#toString()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/RailShape.java:27 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ RailShape
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
RedstoneSide
- Full name:
net.minecraft.world.level.block.state.properties.RedstoneSide - Package:
net.minecraft.world.level.block.state.properties - Source:
common—net/minecraft/world/level/block/state/properties/RedstoneSide.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.level.block.state.properties.RedstoneSide#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/RedstoneSide.java:21 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.RedstoneSide#isConnected()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/RedstoneSide.java:26 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Connected
ทำงานยังไง
คืนค่า: this != NONE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.RedstoneSide#toString()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/RedstoneSide.java:16 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ RedstoneSide
ทำงานยังไง
เรียกต่อ: getSerializedName(). คืนค่า: this.getSerializedName().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
RotationSegment
- Full name:
net.minecraft.world.level.block.state.properties.RotationSegment - Package:
net.minecraft.world.level.block.state.properties - Source:
common—net/minecraft/world/level/block/state/properties/RotationSegment.java - Type:
class - Modifiers:
public
net.minecraft.world.level.block.state.properties.RotationSegment#convertToDegrees(int)
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/RotationSegment.java:38 - Modifiers:
public static - Return:
float
คืออะไร
แปลง To Degrees
ทำงานยังไง
เรียกต่อ: toDegrees(). คืนค่า: SEGMENTED_ANGLE16.toDegrees(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.RotationSegment#convertToDirection(int)
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/RotationSegment.java:27 - Modifiers:
public static - Return:
Optional<Direction>
คืออะไร
แปลง To Direction
ทำงานยังไง
แยกกรณีด้วย switch. เรียกต่อ: ofNullable(). คืนค่า: Optional.ofNullable(direction).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.RotationSegment#convertToSegment(Direction)
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/RotationSegment.java:19 - Modifiers:
public static - Return:
int
คืออะไร
แปลง To Segment
ทำงานยังไง
เรียกต่อ: fromDirection(). คืนค่า: SEGMENTED_ANGLE16.fromDirection(direction).
Parameters
Direction direction
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.RotationSegment#convertToSegment(float)
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/RotationSegment.java:23 - Modifiers:
public static - Return:
int
คืออะไร
แปลง To Segment
ทำงานยังไง
เรียกต่อ: fromDegrees(). คืนค่า: SEGMENTED_ANGLE16.fromDegrees(f).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.RotationSegment#getMaxSegmentIndex()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/RotationSegment.java:15 - Modifiers:
public static - Return:
int
คืออะไร
อ่านค่า Max Segment Index
ทำงานยังไง
คืนค่า: MAX_SEGMENT_INDEX.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SculkSensorPhase
- Full name:
net.minecraft.world.level.block.state.properties.SculkSensorPhase - Package:
net.minecraft.world.level.block.state.properties - Source:
common—net/minecraft/world/level/block/state/properties/SculkSensorPhase.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.level.block.state.properties.SculkSensorPhase#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/SculkSensorPhase.java:21 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.SculkSensorPhase#toString()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/SculkSensorPhase.java:16 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ SculkSensorPhase
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SlabType
- Full name:
net.minecraft.world.level.block.state.properties.SlabType - Package:
net.minecraft.world.level.block.state.properties - Source:
common—net/minecraft/world/level/block/state/properties/SlabType.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.level.block.state.properties.SlabType#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/SlabType.java:21 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.SlabType#toString()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/SlabType.java:16 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ SlabType
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
StairsShape
- Full name:
net.minecraft.world.level.block.state.properties.StairsShape - Package:
net.minecraft.world.level.block.state.properties - Source:
common—net/minecraft/world/level/block/state/properties/StairsShape.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.level.block.state.properties.StairsShape#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/StairsShape.java:23 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.StairsShape#toString()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/StairsShape.java:18 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ StairsShape
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
StructureMode
- Full name:
net.minecraft.world.level.block.state.properties.StructureMode - Package:
net.minecraft.world.level.block.state.properties - Source:
common—net/minecraft/world/level/block/state/properties/StructureMode.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.level.block.state.properties.StructureMode#getDisplayName()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/StructureMode.java:25 - Modifiers:
public - Return:
Component
คืออะไร
อ่านค่า Display Name
ทำงานยังไง
คืนค่า: this.displayName.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.StructureMode#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/StructureMode.java:20 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Tilt
- Full name:
net.minecraft.world.level.block.state.properties.Tilt - Package:
net.minecraft.world.level.block.state.properties - Source:
common—net/minecraft/world/level/block/state/properties/Tilt.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.level.block.state.properties.Tilt#causesVibration()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/Tilt.java:24 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ causesVibration ตาม implementation ของ Tilt
ทำงานยังไง
คืนค่า: this.causesVibration.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.Tilt#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/Tilt.java:19 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
WallSide
- Full name:
net.minecraft.world.level.block.state.properties.WallSide - Package:
net.minecraft.world.level.block.state.properties - Source:
common—net/minecraft/world/level/block/state/properties/WallSide.java - Type:
enum - Modifiers:
public - Implements:
StringRepresentable
net.minecraft.world.level.block.state.properties.WallSide#getSerializedName()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/WallSide.java:21 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Serialized Name
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.WallSide#toString()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/WallSide.java:16 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ WallSide
ทำงานยังไง
เรียกต่อ: getSerializedName(). คืนค่า: this.getSerializedName().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
WoodType
- Full name:
net.minecraft.world.level.block.state.properties.WoodType - Package:
net.minecraft.world.level.block.state.properties - Source:
common—net/minecraft/world/level/block/state/properties/WoodType.java - Type:
record - Modifiers:
public
net.minecraft.world.level.block.state.properties.WoodType#values()
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/WoodType.java:74 - Modifiers:
public static - Return:
Stream<WoodType>
คืออะไร
ดำเนินการ values ตาม implementation ของ WoodType
ทำงานยังไง
เรียกต่อ: stream(). คืนค่า: TYPES.values().stream().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.block.state.properties.WoodType#WoodType(String,BlockSetType)
- Origin:
common - Source:
net/minecraft/world/level/block/state/properties/WoodType.java:65 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ WoodType ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
String stringBlockSetType blockSetType