Package net.minecraft.resources
Part 1/1
DelegatingOps
- Full name:
net.minecraft.resources.DelegatingOps - Package:
net.minecraft.resources - Source:
common—net/minecraft/resources/DelegatingOps.java - Type:
class - Modifiers:
public abstract - Implements:
DynamicOps<T>
net.minecraft.resources.DelegatingOps#compressMaps()
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:212 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ compressMaps ตาม implementation ของ DelegatingOps
ทำงานยังไง
คืนค่า: this.delegate.compressMaps().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.resources.DelegatingOps#convertTo(DynamicOps<U>,T)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:42 - Modifiers:
public - Return:
U
คืออะไร
แปลง To
ทำงานยังไง
คืนค่า: this.delegate.convertTo(dynamicOps, object).
Parameters
DynamicOps<U> dynamicOpsT object
ตัวอย่างใช้งาน
DelegatingOps instance = ...;
DynamicOps<U> dynamicOps = ...;
T object = ...;
U result = instance.convertTo(dynamicOps, object);
net.minecraft.resources.DelegatingOps#createBoolean(boolean)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:92 - Modifiers:
public - Return:
T
คืออะไร
สร้าง Boolean
ทำงานยังไง
คืนค่า: this.delegate.createBoolean(bl).
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.resources.DelegatingOps#createByte(byte)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:57 - Modifiers:
public - Return:
T
คืออะไร
สร้าง Byte
ทำงานยังไง
คืนค่า: this.delegate.createByte(b).
Parameters
byte b
ตัวอย่างใช้งาน
net.minecraft.resources.DelegatingOps#createByteList(ByteBuffer)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:182 - Modifiers:
public - Return:
T
คืออะไร
สร้าง Byte List
ทำงานยังไง
คืนค่า: this.delegate.createByteList(byteBuffer).
Parameters
ByteBuffer byteBuffer
ตัวอย่างใช้งาน
DelegatingOps instance = ...;
ByteBuffer byteBuffer = ...;
T result = instance.createByteList(byteBuffer);
net.minecraft.resources.DelegatingOps#createDouble(double)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:82 - Modifiers:
public - Return:
T
คืออะไร
สร้าง Double
ทำงานยังไง
คืนค่า: this.delegate.createDouble(d).
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.resources.DelegatingOps#createFloat(float)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:77 - Modifiers:
public - Return:
T
คืออะไร
สร้าง Float
ทำงานยังไง
คืนค่า: this.delegate.createFloat(f).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.resources.DelegatingOps#createInt(int)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:67 - Modifiers:
public - Return:
T
คืออะไร
สร้าง Int
ทำงานยังไง
คืนค่า: this.delegate.createInt(i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.resources.DelegatingOps#createIntList(IntStream)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:192 - Modifiers:
public - Return:
T
คืออะไร
สร้าง Int List
ทำงานยังไง
คืนค่า: this.delegate.createIntList(intStream).
Parameters
IntStream intStream
ตัวอย่างใช้งาน
DelegatingOps instance = ...;
IntStream intStream = ...;
T result = instance.createIntList(intStream);
net.minecraft.resources.DelegatingOps#createList(Stream<T>)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:172 - Modifiers:
public - Return:
T
คืออะไร
สร้าง List
ทำงานยังไง
คืนค่า: this.delegate.createList(stream).
Parameters
Stream<T> stream
ตัวอย่างใช้งาน
net.minecraft.resources.DelegatingOps#createLong(long)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:72 - Modifiers:
public - Return:
T
คืออะไร
สร้าง Long
ทำงานยังไง
คืนค่า: this.delegate.createLong(l).
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.resources.DelegatingOps#createLongList(LongStream)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:202 - Modifiers:
public - Return:
T
คืออะไร
สร้าง Long List
ทำงานยังไง
คืนค่า: this.delegate.createLongList(longStream).
Parameters
LongStream longStream
ตัวอย่างใช้งาน
DelegatingOps instance = ...;
LongStream longStream = ...;
T result = instance.createLongList(longStream);
net.minecraft.resources.DelegatingOps#createMap(Map<T, T>)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:147 - Modifiers:
public - Return:
T
คืออะไร
สร้าง Map
ทำงานยังไง
คืนค่า: this.delegate.createMap(map).
Parameters
Map<T, T> map
ตัวอย่างใช้งาน
net.minecraft.resources.DelegatingOps#createMap(Stream<Pair<T, T>>)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:152 - Modifiers:
public - Return:
T
คืออะไร
สร้าง Map
ทำงานยังไง
คืนค่า: this.delegate.createMap(stream).
Parameters
Stream<Pair<T, T>> stream
ตัวอย่างใช้งาน
DelegatingOps instance = ...;
Stream<Pair<T, T>> stream = ...;
T result = instance.createMap(stream);
net.minecraft.resources.DelegatingOps#createNumeric(Number)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:52 - Modifiers:
public - Return:
T
คืออะไร
สร้าง Numeric
ทำงานยังไง
คืนค่า: this.delegate.createNumeric(number).
Parameters
Number number
ตัวอย่างใช้งาน
net.minecraft.resources.DelegatingOps#createShort(short)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:62 - Modifiers:
public - Return:
T
คืออะไร
สร้าง Short
ทำงานยังไง
คืนค่า: this.delegate.createShort(s).
Parameters
short s
ตัวอย่างใช้งาน
net.minecraft.resources.DelegatingOps#createString(String)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:102 - Modifiers:
public - Return:
T
คืออะไร
สร้าง String
ทำงานยังไง
คืนค่า: this.delegate.createString(string).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.resources.DelegatingOps#DelegatingOps(DynamicOps<T>)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:23 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DelegatingOps ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: delegate.
Parameters
DynamicOps<T> dynamicOps
ตัวอย่างใช้งาน
net.minecraft.resources.DelegatingOps#empty()
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:27 - Modifiers:
public - Return:
T
คืออะไร
ดำเนินการ empty ตาม implementation ของ DelegatingOps
ทำงานยังไง
คืนค่า: this.delegate.empty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.resources.DelegatingOps#emptyList()
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:37 - Modifiers:
public - Return:
T
คืออะไร
ดำเนินการ emptyList ตาม implementation ของ DelegatingOps
ทำงานยังไง
คืนค่า: this.delegate.emptyList().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.resources.DelegatingOps#emptyMap()
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:32 - Modifiers:
public - Return:
T
คืออะไร
ดำเนินการ emptyMap ตาม implementation ของ DelegatingOps
ทำงานยังไง
คืนค่า: this.delegate.emptyMap().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.resources.DelegatingOps#getBooleanValue(T)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:87 - Modifiers:
public - Return:
DataResult<Boolean>
คืออะไร
อ่านค่า Boolean Value
ทำงานยังไง
คืนค่า: this.delegate.getBooleanValue(object).
Parameters
T object
ตัวอย่างใช้งาน
DelegatingOps instance = ...;
T object = ...;
DataResult<Boolean> result = instance.getBooleanValue(object);
net.minecraft.resources.DelegatingOps#getByteBuffer(T)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:177 - Modifiers:
public - Return:
DataResult<ByteBuffer>
คืออะไร
อ่านค่า Byte Buffer
ทำงานยังไง
คืนค่า: this.delegate.getByteBuffer(object).
Parameters
T object
ตัวอย่างใช้งาน
DelegatingOps instance = ...;
T object = ...;
DataResult<ByteBuffer> result = instance.getByteBuffer(object);
net.minecraft.resources.DelegatingOps#getIntStream(T)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:187 - Modifiers:
public - Return:
DataResult<IntStream>
คืออะไร
อ่านค่า Int Stream
ทำงานยังไง
คืนค่า: this.delegate.getIntStream(object).
Parameters
T object
ตัวอย่างใช้งาน
DelegatingOps instance = ...;
T object = ...;
DataResult<IntStream> result = instance.getIntStream(object);
net.minecraft.resources.DelegatingOps#getList(T)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:167 - Modifiers:
public - Return:
DataResult<Consumer<Consumer<T>>>
คืออะไร
อ่านค่า List
ทำงานยังไง
คืนค่า: this.delegate.getList(object).
Parameters
T object
ตัวอย่างใช้งาน
DelegatingOps instance = ...;
T object = ...;
DataResult<Consumer<Consumer<T>>> result = instance.getList(object);
net.minecraft.resources.DelegatingOps#getLongStream(T)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:197 - Modifiers:
public - Return:
DataResult<LongStream>
คืออะไร
อ่านค่า Long Stream
ทำงานยังไง
คืนค่า: this.delegate.getLongStream(object).
Parameters
T object
ตัวอย่างใช้งาน
DelegatingOps instance = ...;
T object = ...;
DataResult<LongStream> result = instance.getLongStream(object);
net.minecraft.resources.DelegatingOps#getMap(T)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:157 - Modifiers:
public - Return:
DataResult<MapLike<T>>
คืออะไร
อ่านค่า Map
ทำงานยังไง
คืนค่า: this.delegate.getMap(object).
Parameters
T object
ตัวอย่างใช้งาน
DelegatingOps instance = ...;
T object = ...;
DataResult<MapLike<T>> result = instance.getMap(object);
net.minecraft.resources.DelegatingOps#getMapEntries(T)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:142 - Modifiers:
public - Return:
DataResult<Consumer<BiConsumer<T, T>>>
คืออะไร
อ่านค่า Map Entries
ทำงานยังไง
คืนค่า: this.delegate.getMapEntries(object).
Parameters
T object
ตัวอย่างใช้งาน
DelegatingOps instance = ...;
T object = ...;
DataResult<Consumer<BiConsumer<T, T>>> result = instance.getMapEntries(object);
net.minecraft.resources.DelegatingOps#getMapValues(T)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:137 - Modifiers:
public - Return:
DataResult<Stream<Pair<T, T>>>
คืออะไร
อ่านค่า Map Values
ทำงานยังไง
คืนค่า: this.delegate.getMapValues(object).
Parameters
T object
ตัวอย่างใช้งาน
DelegatingOps instance = ...;
T object = ...;
DataResult<Stream<Pair<T, T>>> result = instance.getMapValues(object);
net.minecraft.resources.DelegatingOps#getNumberValue(T)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:47 - Modifiers:
public - Return:
DataResult<Number>
คืออะไร
อ่านค่า Number Value
ทำงานยังไง
คืนค่า: this.delegate.getNumberValue(object).
Parameters
T object
ตัวอย่างใช้งาน
DelegatingOps instance = ...;
T object = ...;
DataResult<Number> result = instance.getNumberValue(object);
net.minecraft.resources.DelegatingOps#getStream(T)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:162 - Modifiers:
public - Return:
DataResult<Stream<T>>
คืออะไร
อ่านค่า Stream
ทำงานยังไง
คืนค่า: this.delegate.getStream(object).
Parameters
T object
ตัวอย่างใช้งาน
DelegatingOps instance = ...;
T object = ...;
DataResult<Stream<T>> result = instance.getStream(object);
net.minecraft.resources.DelegatingOps#getStringValue(T)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:97 - Modifiers:
public - Return:
DataResult<String>
คืออะไร
อ่านค่า String Value
ทำงานยังไง
คืนค่า: this.delegate.getStringValue(object).
Parameters
T object
ตัวอย่างใช้งาน
DelegatingOps instance = ...;
T object = ...;
DataResult<String> result = instance.getStringValue(object);
net.minecraft.resources.DelegatingOps#listBuilder()
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:217 - Modifiers:
public - Return:
ListBuilder<T>
คืออะไร
ดำเนินการ listBuilder ตาม implementation ของ DelegatingOps
ทำงานยังไง
สร้างออบเจ็กต์: Builder<>. คืนค่า: new Builder<>(this).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.resources.DelegatingOps#mapBuilder()
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:222 - Modifiers:
public - Return:
RecordBuilder<T>
คืออะไร
ดำเนินการ mapBuilder ตาม implementation ของ DelegatingOps
ทำงานยังไง
สร้างออบเจ็กต์: MapBuilder<>. คืนค่า: new MapBuilder<>(this).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.resources.DelegatingOps#mergeToList(T,List<T>)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:112 - Modifiers:
public - Return:
DataResult<T>
คืออะไร
ดำเนินการ mergeToList ตาม implementation ของ DelegatingOps
ทำงานยังไง
คืนค่า: this.delegate.mergeToList(object, list).
Parameters
T objectList<T> list
ตัวอย่างใช้งาน
DelegatingOps instance = ...;
T object = ...;
List<T> list = ...;
DataResult<T> result = instance.mergeToList(object, list);
net.minecraft.resources.DelegatingOps#mergeToList(T,T)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:107 - Modifiers:
public - Return:
DataResult<T>
คืออะไร
ดำเนินการ mergeToList ตาม implementation ของ DelegatingOps
ทำงานยังไง
คืนค่า: this.delegate.mergeToList(object, object2).
Parameters
T objectT object2
ตัวอย่างใช้งาน
DelegatingOps instance = ...;
T object = ...;
T object2 = ...;
DataResult<T> result = instance.mergeToList(object, object2);
net.minecraft.resources.DelegatingOps#mergeToMap(T,Map<T, T>)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:127 - Modifiers:
public - Return:
DataResult<T>
คืออะไร
ดำเนินการ mergeToMap ตาม implementation ของ DelegatingOps
ทำงานยังไง
คืนค่า: this.delegate.mergeToMap(object, map).
Parameters
T objectMap<T, T> map
ตัวอย่างใช้งาน
DelegatingOps instance = ...;
T object = ...;
Map<T, T> map = ...;
DataResult<T> result = instance.mergeToMap(object, map);
net.minecraft.resources.DelegatingOps#mergeToMap(T,MapLike<T>)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:122 - Modifiers:
public - Return:
DataResult<T>
คืออะไร
ดำเนินการ mergeToMap ตาม implementation ของ DelegatingOps
ทำงานยังไง
คืนค่า: this.delegate.mergeToMap(object, mapLike).
Parameters
T objectMapLike<T> mapLike
ตัวอย่างใช้งาน
DelegatingOps instance = ...;
T object = ...;
MapLike<T> mapLike = ...;
DataResult<T> result = instance.mergeToMap(object, mapLike);
net.minecraft.resources.DelegatingOps#mergeToMap(T,T,T)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:117 - Modifiers:
public - Return:
DataResult<T>
คืออะไร
ดำเนินการ mergeToMap ตาม implementation ของ DelegatingOps
ทำงานยังไง
คืนค่า: this.delegate.mergeToMap(object, object2, object3).
Parameters
T objectT object2T object3
ตัวอย่างใช้งาน
DelegatingOps instance = ...;
T object = ...;
T object2 = ...;
T object3 = ...;
DataResult<T> result = instance.mergeToMap(object, object2, object3);
net.minecraft.resources.DelegatingOps#mergeToPrimitive(T,T)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:132 - Modifiers:
public - Return:
DataResult<T>
คืออะไร
ดำเนินการ mergeToPrimitive ตาม implementation ของ DelegatingOps
ทำงานยังไง
คืนค่า: this.delegate.mergeToPrimitive(object, object2).
Parameters
T objectT object2
ตัวอย่างใช้งาน
DelegatingOps instance = ...;
T object = ...;
T object2 = ...;
DataResult<T> result = instance.mergeToPrimitive(object, object2);
net.minecraft.resources.DelegatingOps#remove(T,String)
- Origin:
common - Source:
net/minecraft/resources/DelegatingOps.java:207 - Modifiers:
public - Return:
T
คืออะไร
ลบ remove
ทำงานยังไง
คืนค่า: this.delegate.remove(object, string).
Parameters
T objectString string
ตัวอย่างใช้งาน
DependantName
- Full name:
net.minecraft.resources.DependantName - Package:
net.minecraft.resources - Source:
common—net/minecraft/resources/DependantName.java - Type:
interface - Modifiers:
public
net.minecraft.resources.DependantName#fixed(V)
- Origin:
common - Source:
net/minecraft/resources/DependantName.java:7 - Modifiers:
static - Return:
DependantName<T, V>
คืออะไร
ดำเนินการ fixed ตาม implementation ของ DependantName
ทำงานยังไง
คืนค่า: resourceKey -> object.
Parameters
V object
ตัวอย่างใช้งาน
net.minecraft.resources.DependantName#get(ResourceKey<T>)
- Origin:
common - Source:
net/minecraft/resources/DependantName.java:5 - Modifiers: ``
- Return:
V
คืออะไร
อ่านค่า get
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
ResourceKey<T> resourceKey
ตัวอย่างใช้งาน
DependantName instance = ...;
ResourceKey<T> resourceKey = ...;
V result = instance.get(resourceKey);
FileToIdConverter
- Full name:
net.minecraft.resources.FileToIdConverter - Package:
net.minecraft.resources - Source:
common—net/minecraft/resources/FileToIdConverter.java - Type:
class - Modifiers:
public
net.minecraft.resources.FileToIdConverter#fileToId(ResourceLocation)
- Origin:
common - Source:
net/minecraft/resources/FileToIdConverter.java:31 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
ดำเนินการ fileToId ตาม implementation ของ FileToIdConverter
ทำงานยังไง
เรียกต่อ: getPath(), withPath(), substring(), length(). คืนค่า: resourceLocation.withPath(string.substring(this.prefix.length() + 1, string.length() - this.extension.length())).
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
FileToIdConverter instance = ...;
ResourceLocation resourceLocation = ...;
ResourceLocation result = instance.fileToId(resourceLocation);
net.minecraft.resources.FileToIdConverter#FileToIdConverter(String,String)
- Origin:
common - Source:
net/minecraft/resources/FileToIdConverter.java:14 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ FileToIdConverter ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: prefix, extension.
Parameters
String stringString string2
ตัวอย่างใช้งาน
net.minecraft.resources.FileToIdConverter#idToFile(ResourceLocation)
- Origin:
common - Source:
net/minecraft/resources/FileToIdConverter.java:27 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
ดำเนินการ idToFile ตาม implementation ของ FileToIdConverter
ทำงานยังไง
เรียกต่อ: withPath(), getPath(). คืนค่า: resourceLocation.withPath(this.prefix + "/" + resourceLocation.getPath() + this.extension).
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
FileToIdConverter instance = ...;
ResourceLocation resourceLocation = ...;
ResourceLocation result = instance.idToFile(resourceLocation);
net.minecraft.resources.FileToIdConverter#json(String)
- Origin:
common - Source:
net/minecraft/resources/FileToIdConverter.java:19 - Modifiers:
public static - Return:
FileToIdConverter
คืออะไร
ดำเนินการ json ตาม implementation ของ FileToIdConverter
ทำงานยังไง
สร้างออบเจ็กต์: FileToIdConverter. คืนค่า: new FileToIdConverter(string, ".json").
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.resources.FileToIdConverter#listMatchingResources(ResourceManager)
- Origin:
common - Source:
net/minecraft/resources/FileToIdConverter.java:36 - Modifiers:
public - Return:
Map<ResourceLocation, Resource>
คืออะไร
ดำเนินการ listMatchingResources ตาม implementation ของ FileToIdConverter
ทำงานยังไง
เรียกต่อ: listResources(), getPath(), endsWith(). คืนค่า: resourceManager.listResources(this.prefix, resourceLocation -> resourceLocation.getPath().endsWith(this.extension)).
Parameters
ResourceManager resourceManager
ตัวอย่างใช้งาน
FileToIdConverter instance = ...;
ResourceManager resourceManager = ...;
Map<ResourceLocation, Resource> result = instance.listMatchingResources(resourceManager);
net.minecraft.resources.FileToIdConverter#listMatchingResourceStacks(ResourceManager)
- Origin:
common - Source:
net/minecraft/resources/FileToIdConverter.java:40 - Modifiers:
public - Return:
Map<ResourceLocation, List<Resource>>
คืออะไร
ดำเนินการ listMatchingResourceStacks ตาม implementation ของ FileToIdConverter
ทำงานยังไง
เรียกต่อ: listResourceStacks(), getPath(), endsWith(). คืนค่า: resourceManager.listResourceStacks(this.prefix, resourceLocation -> resourceLocation.getPath().endsWith(this.extension)).
Parameters
ResourceManager resourceManager
ตัวอย่างใช้งาน
FileToIdConverter instance = ...;
ResourceManager resourceManager = ...;
Map<ResourceLocation, List<Resource>> result = instance.listMatchingResourceStacks(resourceManager);
net.minecraft.resources.FileToIdConverter#registry(ResourceKey<? extends Registry<?>>)
- Origin:
common - Source:
net/minecraft/resources/FileToIdConverter.java:23 - Modifiers:
public static - Return:
FileToIdConverter
คืออะไร
ดำเนินการ registry ตาม implementation ของ FileToIdConverter
ทำงานยังไง
เรียกต่อ: json(), elementsDirPath(). คืนค่า: json(Registries.elementsDirPath(resourceKey)).
Parameters
ResourceKey<? extends Registry<?>> resourceKey
ตัวอย่างใช้งาน
ResourceKey<? extends Registry<?>> resourceKey = ...;
FileToIdConverter result = FileToIdConverter.registry(resourceKey);
HolderSetCodec
- Full name:
net.minecraft.resources.HolderSetCodec - Package:
net.minecraft.resources - Source:
common—net/minecraft/resources/HolderSetCodec.java - Type:
class - Modifiers:
public - Implements:
Codec<HolderSet<E>>
net.minecraft.resources.HolderSetCodec#create(ResourceKey<? extends Registry<E>>,Codec<Holder<E>>,boolean)
- Origin:
common - Source:
net/minecraft/resources/HolderSetCodec.java:30 - Modifiers:
public static - Return:
Codec<HolderSet<E>>
คืออะไร
สร้าง create
ทำงานยังไง
สร้างออบเจ็กต์: HolderSetCodec<>. คืนค่า: new HolderSetCodec<>(resourceKey, codec, bl).
Parameters
ResourceKey<? extends Registry<E>> resourceKeyCodec<Holder<E>> codecboolean bl
ตัวอย่างใช้งาน
ResourceKey<? extends Registry<E>> resourceKey = ...;
Codec<Holder<E>> codec = ...;
Codec<HolderSet<E>> result = HolderSetCodec.create(resourceKey, codec, true);
net.minecraft.resources.HolderSetCodec#decode(DynamicOps<T>,T)
- Origin:
common - Source:
net/minecraft/resources/HolderSetCodec.java:41 - Modifiers:
public - Return:
DataResult<Pair<HolderSet<E>, T>>
คืออะไร
ถอดรหัสข้อมูล decode
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getter(), isPresent(), get(), flatMap(), getFirst(), map(), lookupTag(), success(). มีจุด return อย่างน้อย 2 จุด.
Parameters
DynamicOps<T> dynamicOpsT object
ตัวอย่างใช้งาน
HolderSetCodec instance = ...;
DynamicOps<T> dynamicOps = ...;
T object = ...;
DataResult<Pair<HolderSet<E>, T>> result = instance.decode(dynamicOps, object);
net.minecraft.resources.HolderSetCodec#encode(HolderSet<E>,DynamicOps<T>,T)
- Origin:
common - Source:
net/minecraft/resources/HolderSetCodec.java:68 - Modifiers:
public - Return:
DataResult<T>
คืออะไร
เข้ารหัสข้อมูล encode
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: owner(), isPresent(), canSerializeIn(), get(), error(), unwrap(), mapRight(), encodeWithoutRegistry(). มีจุด return อย่างน้อย 3 จุด.
Parameters
HolderSet<E> holderSetDynamicOps<T> dynamicOpsT object
ตัวอย่างใช้งาน
HolderSetCodec instance = ...;
HolderSet<E> holderSet = ...;
DynamicOps<T> dynamicOps = ...;
T object = ...;
DataResult<T> result = instance.encode(holderSet, dynamicOps, object);
RegistryDataLoader
- Full name:
net.minecraft.resources.RegistryDataLoader - Package:
net.minecraft.resources - Source:
common—net/minecraft/resources/RegistryDataLoader.java - Type:
class - Modifiers:
public
net.minecraft.resources.RegistryDataLoader#load(Map<ResourceKey<? extends Registry<?>>, RegistryDataLoader.NetworkedRegistryData>,ResourceProvider,List<HolderLookup.RegistryLookup<?>>,List<RegistryDataLoader.RegistryData<?>>)
- Origin:
common - Source:
net/minecraft/resources/RegistryDataLoader.java:136 - Modifiers:
public static - Return:
RegistryAccess.Frozen
คืออะไร
โหลด load
ทำงานยังไง
เรียกต่อ: loadFromNetwork(). คืนค่า: load((loader, registryInfoLookup) -> loader.loadFromNetwork(map, resourceProvider, registryInfoLookup), list, list2).
Parameters
Map<ResourceKey<? extends Registry<?>>, RegistryDataLoader.NetworkedRegistryData> mapResourceProvider resourceProviderList<HolderLookup.RegistryLookup<?>> listList<RegistryDataLoader.RegistryData<?>> list2
ตัวอย่างใช้งาน
Map<ResourceKey<? extends Registry<?>>, RegistryDataLoader.NetworkedRegistryData> map = ...;
ResourceProvider resourceProvider = ...;
List<HolderLookup.RegistryLookup<?>> list = ...;
List<RegistryDataLoader.RegistryData<?>> list2 = ...;
RegistryAccess.Frozen result = RegistryDataLoader.load(map, resourceProvider, list, list2);
net.minecraft.resources.RegistryDataLoader#load(ResourceManager,List<HolderLookup.RegistryLookup<?>>,List<RegistryDataLoader.RegistryData<?>>)
- Origin:
common - Source:
net/minecraft/resources/RegistryDataLoader.java:130 - Modifiers:
public static - Return:
RegistryAccess.Frozen
คืออะไร
โหลด load
ทำงานยังไง
เรียกต่อ: loadFromResources(). คืนค่า: load((loader, registryInfoLookup) -> loader.loadFromResources(resourceManager, registryInfoLookup), list, list2).
Parameters
ResourceManager resourceManagerList<HolderLookup.RegistryLookup<?>> listList<RegistryDataLoader.RegistryData<?>> list2
ตัวอย่างใช้งาน
ResourceManager resourceManager = ...;
List<HolderLookup.RegistryLookup<?>> list = ...;
List<RegistryDataLoader.RegistryData<?>> list2 = ...;
RegistryAccess.Frozen result = RegistryDataLoader.load(resourceManager, list, list2);
RegistryDataLoader$RegistryData
- Full name:
net.minecraft.resources.RegistryDataLoader$RegistryData - Package:
net.minecraft.resources - Source:
common—net/minecraft/resources/RegistryDataLoader.java - Type:
record - Modifiers:
public
net.minecraft.resources.RegistryDataLoader$RegistryData#runWithArguments(BiConsumer<ResourceKey<? extends Registry<T>>, Codec<T>>)
- Origin:
common - Source:
net/minecraft/resources/RegistryDataLoader.java:360 - Modifiers:
public - Return:
void
คืออะไร
สั่งทำงาน With Arguments
ทำงานยังไง
เรียกต่อ: accept().
Parameters
BiConsumer<ResourceKey<? extends Registry<T>>, Codec<T>> biConsumer
ตัวอย่างใช้งาน
RegistryDataLoader.RegistryData instance = ...;
BiConsumer<ResourceKey<? extends Registry<T>>, Codec<T>> biConsumer = ...;
instance.runWithArguments(biConsumer);
RegistryFileCodec
- Full name:
net.minecraft.resources.RegistryFileCodec - Package:
net.minecraft.resources - Source:
common—net/minecraft/resources/RegistryFileCodec.java - Type:
class - Modifiers:
public final - Implements:
Codec<Holder<E>>
net.minecraft.resources.RegistryFileCodec#create(ResourceKey<? extends Registry<E>>,Codec<E>)
- Origin:
common - Source:
net/minecraft/resources/RegistryFileCodec.java:19 - Modifiers:
public static - Return:
RegistryFileCodec<E>
คืออะไร
สร้าง create
ทำงานยังไง
คืนค่า: create(resourceKey, codec, true).
Parameters
ResourceKey<? extends Registry<E>> resourceKeyCodec<E> codec
ตัวอย่างใช้งาน
ResourceKey<? extends Registry<E>> resourceKey = ...;
Codec<E> codec = ...;
RegistryFileCodec<E> result = RegistryFileCodec.create(resourceKey, codec);
net.minecraft.resources.RegistryFileCodec#create(ResourceKey<? extends Registry<E>>,Codec<E>,boolean)
- Origin:
common - Source:
net/minecraft/resources/RegistryFileCodec.java:23 - Modifiers:
public static - Return:
RegistryFileCodec<E>
คืออะไร
สร้าง create
ทำงานยังไง
สร้างออบเจ็กต์: RegistryFileCodec<>. คืนค่า: new RegistryFileCodec<>(resourceKey, codec, bl).
Parameters
ResourceKey<? extends Registry<E>> resourceKeyCodec<E> codecboolean bl
ตัวอย่างใช้งาน
ResourceKey<? extends Registry<E>> resourceKey = ...;
Codec<E> codec = ...;
RegistryFileCodec<E> result = RegistryFileCodec.create(resourceKey, codec, true);
net.minecraft.resources.RegistryFileCodec#decode(DynamicOps<T>,T)
- Origin:
common - Source:
net/minecraft/resources/RegistryFileCodec.java:52 - Modifiers:
public - Return:
DataResult<Pair<Holder<E>, T>>
คืออะไร
ถอดรหัสข้อมูล decode
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getter(), isEmpty(), error(), get(), result(), map(), mapFirst(), create(). มีจุด return อย่างน้อย 2 จุด.
Parameters
DynamicOps<T> dynamicOpsT object
ตัวอย่างใช้งาน
RegistryFileCodec instance = ...;
DynamicOps<T> dynamicOps = ...;
T object = ...;
DataResult<Pair<Holder<E>, T>> result = instance.decode(dynamicOps, object);
net.minecraft.resources.RegistryFileCodec#encode(Holder<E>,DynamicOps<T>,T)
- Origin:
common - Source:
net/minecraft/resources/RegistryFileCodec.java:33 - Modifiers:
public - Return:
DataResult<T>
คืออะไร
เข้ารหัสข้อมูล encode
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: owner(), isPresent(), canSerializeIn(), get(), error(), unwrap(), map(), location(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Holder<E> holderDynamicOps<T> dynamicOpsT object
ตัวอย่างใช้งาน
RegistryFileCodec instance = ...;
Holder<E> holder = ...;
DynamicOps<T> dynamicOps = ...;
T object = ...;
DataResult<T> result = instance.encode(holder, dynamicOps, object);
net.minecraft.resources.RegistryFileCodec#toString()
- Origin:
common - Source:
net/minecraft/resources/RegistryFileCodec.java:80 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ RegistryFileCodec
ทำงานยังไง
คืนค่า: "RegistryFileCodec[" + this.registryKey + " " + this.elementCodec + "]".
Parameters
- ไม่มี
ตัวอย่างใช้งาน
RegistryFixedCodec
- Full name:
net.minecraft.resources.RegistryFixedCodec - Package:
net.minecraft.resources - Source:
common—net/minecraft/resources/RegistryFixedCodec.java - Type:
class - Modifiers:
public final - Implements:
Codec<Holder<E>>
net.minecraft.resources.RegistryFixedCodec#create(ResourceKey<? extends Registry<E>>)
- Origin:
common - Source:
net/minecraft/resources/RegistryFixedCodec.java:17 - Modifiers:
public static - Return:
RegistryFixedCodec<E>
คืออะไร
สร้าง create
ทำงานยังไง
สร้างออบเจ็กต์: RegistryFixedCodec<>. คืนค่า: new RegistryFixedCodec<>(resourceKey).
Parameters
ResourceKey<? extends Registry<E>> resourceKey
ตัวอย่างใช้งาน
ResourceKey<? extends Registry<E>> resourceKey = ...;
RegistryFixedCodec<E> result = RegistryFixedCodec.create(resourceKey);
net.minecraft.resources.RegistryFixedCodec#decode(DynamicOps<T>,T)
- Origin:
common - Source:
net/minecraft/resources/RegistryFixedCodec.java:44 - Modifiers:
public - Return:
DataResult<Pair<Holder<E>, T>>
คืออะไร
ถอดรหัสข้อมูล decode
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getter(), isPresent(), flatMap(), getFirst(), get(), create(), map(), orElseGet(). มีจุด return อย่างน้อย 2 จุด.
Parameters
DynamicOps<T> dynamicOpsT object
ตัวอย่างใช้งาน
RegistryFixedCodec instance = ...;
DynamicOps<T> dynamicOps = ...;
T object = ...;
DataResult<Pair<Holder<E>, T>> result = instance.decode(dynamicOps, object);
net.minecraft.resources.RegistryFixedCodec#encode(Holder<E>,DynamicOps<T>,T)
- Origin:
common - Source:
net/minecraft/resources/RegistryFixedCodec.java:25 - Modifiers:
public - Return:
DataResult<T>
คืออะไร
เข้ารหัสข้อมูล encode
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: owner(), isPresent(), canSerializeIn(), get(), error(), unwrap(), map(), location(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Holder<E> holderDynamicOps<T> dynamicOpsT object
ตัวอย่างใช้งาน
RegistryFixedCodec instance = ...;
Holder<E> holder = ...;
DynamicOps<T> dynamicOps = ...;
T object = ...;
DataResult<T> result = instance.encode(holder, dynamicOps, object);
net.minecraft.resources.RegistryFixedCodec#toString()
- Origin:
common - Source:
net/minecraft/resources/RegistryFixedCodec.java:68 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ RegistryFixedCodec
ทำงานยังไง
คืนค่า: "RegistryFixedCodec[" + this.registryKey + "]".
Parameters
- ไม่มี
ตัวอย่างใช้งาน
RegistryOps
- Full name:
net.minecraft.resources.RegistryOps - Package:
net.minecraft.resources - Source:
common—net/minecraft/resources/RegistryOps.java - Type:
class - Modifiers:
public - Extends:
DelegatingOps<T>
net.minecraft.resources.RegistryOps#create(DynamicOps<T>,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/resources/RegistryOps.java:21 - Modifiers:
public static - Return:
RegistryOps<T>
คืออะไร
สร้าง create
ทำงานยังไง
เรียกต่อ: HolderLookupAdapter(). สร้างออบเจ็กต์: RegistryOps.HolderLookupAdapter. คืนค่า: create(dynamicOps, new RegistryOps.HolderLookupAdapter(provider)).
Parameters
DynamicOps<T> dynamicOpsHolderLookup.Provider provider
ตัวอย่างใช้งาน
DynamicOps<T> dynamicOps = ...;
HolderLookup.Provider provider = ...;
RegistryOps<T> result = RegistryOps.create(dynamicOps, provider);
net.minecraft.resources.RegistryOps#create(DynamicOps<T>,RegistryOps.RegistryInfoLookup)
- Origin:
common - Source:
net/minecraft/resources/RegistryOps.java:25 - Modifiers:
public static - Return:
RegistryOps<T>
คืออะไร
สร้าง create
ทำงานยังไง
สร้างออบเจ็กต์: RegistryOps<>. คืนค่า: new RegistryOps<>(dynamicOps, registryInfoLookup).
Parameters
DynamicOps<T> dynamicOpsRegistryOps.RegistryInfoLookup registryInfoLookup
ตัวอย่างใช้งาน
DynamicOps<T> dynamicOps = ...;
RegistryOps.RegistryInfoLookup registryInfoLookup = ...;
RegistryOps<T> result = RegistryOps.create(dynamicOps, registryInfoLookup);
net.minecraft.resources.RegistryOps#equals(Object)
- Origin:
common - Source:
net/minecraft/resources/RegistryOps.java:50 - Modifiers:
public - Return:
boolean
คืออะไร
เปรียบเทียบความเท่ากัน equals
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getClass(). มีจุด return อย่างน้อย 3 จุด.
Parameters
Object object
ตัวอย่างใช้งาน
net.minecraft.resources.RegistryOps#getter(ResourceKey<? extends Registry<? extends E>>)
- Origin:
common - Source:
net/minecraft/resources/RegistryOps.java:46 - Modifiers:
public - Return:
Optional<HolderGetter<E>>
คืออะไร
ดำเนินการ getter ตาม implementation ของ RegistryOps
ทำงานยังไง
เรียกต่อ: lookup(), map(). คืนค่า: this.lookupProvider.lookup(resourceKey).map(RegistryOps.RegistryInfo::getter).
Parameters
ResourceKey<? extends Registry<? extends E>> resourceKey
ตัวอย่างใช้งาน
RegistryOps instance = ...;
ResourceKey<? extends Registry<? extends E>> resourceKey = ...;
Optional<HolderGetter<E>> result = instance.getter(resourceKey);
net.minecraft.resources.RegistryOps#hashCode()
- Origin:
common - Source:
net/minecraft/resources/RegistryOps.java:62 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ hashCode ตาม implementation ของ RegistryOps
ทำงานยังไง
คืนค่า: this.delegate.hashCode() * 31 + this.lookupProvider.hashCode().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.resources.RegistryOps#injectRegistryContext(Dynamic<T>,HolderLookup.Provider)
- Origin:
common - Source:
net/minecraft/resources/RegistryOps.java:29 - Modifiers:
public static - Return:
Dynamic<T>
คืออะไร
ดำเนินการ injectRegistryContext ตาม implementation ของ RegistryOps
ทำงานยังไง
เรียกต่อ: createSerializationContext(), getOps(), getValue(). สร้างออบเจ็กต์: Dynamic<>. คืนค่า: new Dynamic<>(provider.createSerializationContext(dynamic.getOps()), dynamic.getValue()).
Parameters
Dynamic<T> dynamicHolderLookup.Provider provider
ตัวอย่างใช้งาน
Dynamic<T> dynamic = ...;
HolderLookup.Provider provider = ...;
Dynamic<T> result = RegistryOps.injectRegistryContext(dynamic, provider);
net.minecraft.resources.RegistryOps#owner(ResourceKey<? extends Registry<? extends E>>)
- Origin:
common - Source:
net/minecraft/resources/RegistryOps.java:42 - Modifiers:
public - Return:
Optional<HolderOwner<E>>
คืออะไร
ดำเนินการ owner ตาม implementation ของ RegistryOps
ทำงานยังไง
เรียกต่อ: lookup(), map(). คืนค่า: this.lookupProvider.lookup(resourceKey).map(RegistryOps.RegistryInfo::owner).
Parameters
ResourceKey<? extends Registry<? extends E>> resourceKey
ตัวอย่างใช้งาน
RegistryOps instance = ...;
ResourceKey<? extends Registry<? extends E>> resourceKey = ...;
Optional<HolderOwner<E>> result = instance.owner(resourceKey);
net.minecraft.resources.RegistryOps#retrieveElement(ResourceKey<E>)
- Origin:
common - Source:
net/minecraft/resources/RegistryOps.java:79 - Modifiers:
public static - Return:
RecordCodecBuilder<O, Holder.Reference<E>>
คืออะไร
ดำเนินการ retrieveElement ตาม implementation ของ RegistryOps
ทำงานยังไง
เรียกต่อ: createRegistryKey(), registry(), retrieveContext(), lookup(), flatMap(), getter(), get(), map().
Parameters
ResourceKey<E> resourceKey
ตัวอย่างใช้งาน
ResourceKey<E> resourceKey = ...;
RecordCodecBuilder<O, Holder.Reference<E>> result = RegistryOps.retrieveElement(resourceKey);
net.minecraft.resources.RegistryOps#retrieveGetter(ResourceKey<? extends Registry<? extends E>>)
- Origin:
common - Source:
net/minecraft/resources/RegistryOps.java:67 - Modifiers:
public static - Return:
RecordCodecBuilder<O, HolderGetter<E>>
คืออะไร
ดำเนินการ retrieveGetter ตาม implementation ของ RegistryOps
ทำงานยังไง
เรียกต่อ: retrieveContext(), lookup(), map(), success(), getter(), elementsLifecycle(), orElseGet(), error().
Parameters
ResourceKey<? extends Registry<? extends E>> resourceKey
ตัวอย่างใช้งาน
ResourceKey<? extends Registry<? extends E>> resourceKey = ...;
RecordCodecBuilder<O, HolderGetter<E>> result = RegistryOps.retrieveGetter(resourceKey);
net.minecraft.resources.RegistryOps#withParent(DynamicOps<U>)
- Origin:
common - Source:
net/minecraft/resources/RegistryOps.java:38 - Modifiers:
public - Return:
RegistryOps<U>
คืออะไร
ดำเนินการ withParent ตาม implementation ของ RegistryOps
ทำงานยังไง
สร้างออบเจ็กต์: RegistryOps<>. คืนค่า: (RegistryOps<U>)(dynamicOps == this.delegate ? this : new RegistryOps<>(dynamicOps, this.lookupProvider)).
Parameters
DynamicOps<U> dynamicOps
ตัวอย่างใช้งาน
RegistryOps instance = ...;
DynamicOps<U> dynamicOps = ...;
RegistryOps<U> result = instance.withParent(dynamicOps);
RegistryOps$RegistryInfo
- Full name:
net.minecraft.resources.RegistryOps$RegistryInfo - Package:
net.minecraft.resources - Source:
common—net/minecraft/resources/RegistryOps.java - Type:
record - Modifiers:
public
net.minecraft.resources.RegistryOps$RegistryInfo#fromRegistryLookup(HolderLookup.RegistryLookup<T>)
- Origin:
common - Source:
net/minecraft/resources/RegistryOps.java:124 - Modifiers:
public static - Return:
RegistryOps.RegistryInfo<T>
คืออะไร
ดำเนินการ fromRegistryLookup ตาม implementation ของ RegistryOps$RegistryInfo
ทำงานยังไง
เรียกต่อ: registryLifecycle(). สร้างออบเจ็กต์: RegistryOps.RegistryInfo<>. คืนค่า: new RegistryOps.RegistryInfo<>(registryLookup, registryLookup, registryLookup.registryLifecycle()).
Parameters
HolderLookup.RegistryLookup<T> registryLookup
ตัวอย่างใช้งาน
HolderLookup.RegistryLookup<T> registryLookup = ...;
RegistryOps.RegistryInfo<T> result = RegistryOps.RegistryInfo.fromRegistryLookup(registryLookup);
RegistryOps$RegistryInfoLookup
- Full name:
net.minecraft.resources.RegistryOps$RegistryInfoLookup - Package:
net.minecraft.resources - Source:
common—net/minecraft/resources/RegistryOps.java - Type:
interface - Modifiers:
public
net.minecraft.resources.RegistryOps$RegistryInfoLookup#lookup(ResourceKey<? extends Registry<? extends T>>)
- Origin:
common - Source:
net/minecraft/resources/RegistryOps.java:130 - Modifiers: ``
- Return:
Optional<RegistryOps.RegistryInfo<T>>
คืออะไร
ดำเนินการ lookup ตาม implementation ของ RegistryOps$RegistryInfoLookup
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
ResourceKey<? extends Registry<? extends T>> resourceKey
ตัวอย่างใช้งาน
RegistryOps.RegistryInfoLookup instance = ...;
ResourceKey<? extends Registry<? extends T>> resourceKey = ...;
Optional<RegistryOps.RegistryInfo<T>> result = instance.lookup(resourceKey);
ResourceKey
- Full name:
net.minecraft.resources.ResourceKey - Package:
net.minecraft.resources - Source:
common—net/minecraft/resources/ResourceKey.java - Type:
class - Modifiers:
public
net.minecraft.resources.ResourceKey#cast(ResourceKey<? extends Registry<E>>)
- Origin:
common - Source:
net/minecraft/resources/ResourceKey.java:53 - Modifiers:
public - Return:
Optional<ResourceKey<E>>
คืออะไร
ดำเนินการ cast ตาม implementation ของ ResourceKey
ทำงานยังไง
เรียกต่อ: isFor(), of(), empty(). คืนค่า: this.isFor(resourceKey) ? Optional.of((ResourceKey<E>)this) : Optional.empty().
Parameters
ResourceKey<? extends Registry<E>> resourceKey
ตัวอย่างใช้งาน
ResourceKey instance = ...;
ResourceKey<? extends Registry<E>> resourceKey = ...;
Optional<ResourceKey<E>> result = instance.cast(resourceKey);
net.minecraft.resources.ResourceKey#codec(ResourceKey<? extends Registry<T>>)
- Origin:
common - Source:
net/minecraft/resources/ResourceKey.java:17 - Modifiers:
public static - Return:
Codec<ResourceKey<T>>
คืออะไร
ดำเนินการ codec ตาม implementation ของ ResourceKey
ทำงานยังไง
เรียกต่อ: xmap(), create(). คืนค่า: ResourceLocation.CODEC.xmap(resourceLocation -> create(resourceKey, resourceLocation), ResourceKey::location).
Parameters
ResourceKey<? extends Registry<T>> resourceKey
ตัวอย่างใช้งาน
ResourceKey<? extends Registry<T>> resourceKey = ...;
Codec<ResourceKey<T>> result = ResourceKey.codec(resourceKey);
net.minecraft.resources.ResourceKey#create(ResourceKey<? extends Registry<T>>,ResourceLocation)
- Origin:
common - Source:
net/minecraft/resources/ResourceKey.java:25 - Modifiers:
public static - Return:
ResourceKey<T>
คืออะไร
สร้าง create
ทำงานยังไง
คืนค่า: create(resourceKey.location, resourceLocation).
Parameters
ResourceKey<? extends Registry<T>> resourceKeyResourceLocation resourceLocation
ตัวอย่างใช้งาน
ResourceKey<? extends Registry<T>> resourceKey = ...;
ResourceLocation resourceLocation = ...;
ResourceKey<T> result = ResourceKey.create(resourceKey, resourceLocation);
net.minecraft.resources.ResourceKey#createRegistryKey(ResourceLocation)
- Origin:
common - Source:
net/minecraft/resources/ResourceKey.java:29 - Modifiers:
public static - Return:
ResourceKey<Registry<T>>
คืออะไร
สร้าง Registry Key
ทำงานยังไง
เรียกต่อ: create(). คืนค่า: create(Registries.ROOT_REGISTRY_NAME, resourceLocation).
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
ResourceKey<Registry<T>> result = ResourceKey.createRegistryKey(resourceLocation);
net.minecraft.resources.ResourceKey#isFor(ResourceKey<? extends Registry<?>>)
- Origin:
common - Source:
net/minecraft/resources/ResourceKey.java:49 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ For
ทำงานยังไง
เรียกต่อ: equals(), location(). คืนค่า: this.registryName.equals(resourceKey.location()).
Parameters
ResourceKey<? extends Registry<?>> resourceKey
ตัวอย่างใช้งาน
ResourceKey instance = ...;
ResourceKey<? extends Registry<?>> resourceKey = ...;
boolean result = instance.isFor(resourceKey);
net.minecraft.resources.ResourceKey#location()
- Origin:
common - Source:
net/minecraft/resources/ResourceKey.java:57 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
ดำเนินการ location ตาม implementation ของ ResourceKey
ทำงานยังไง
คืนค่า: this.location.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.resources.ResourceKey#registry()
- Origin:
common - Source:
net/minecraft/resources/ResourceKey.java:61 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
ดำเนินการ registry ตาม implementation ของ ResourceKey
ทำงานยังไง
คืนค่า: this.registryName.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.resources.ResourceKey#registryKey()
- Origin:
common - Source:
net/minecraft/resources/ResourceKey.java:65 - Modifiers:
public - Return:
ResourceKey<Registry<T>>
คืออะไร
ดำเนินการ registryKey ตาม implementation ของ ResourceKey
ทำงานยังไง
เรียกต่อ: createRegistryKey(). คืนค่า: createRegistryKey(this.registryName).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.resources.ResourceKey#streamCodec(ResourceKey<? extends Registry<T>>)
- Origin:
common - Source:
net/minecraft/resources/ResourceKey.java:21 - Modifiers:
public static - Return:
StreamCodec<ByteBuf, ResourceKey<T>>
คืออะไร
ดำเนินการ streamCodec ตาม implementation ของ ResourceKey
ทำงานยังไง
เรียกต่อ: map(), create(). คืนค่า: ResourceLocation.STREAM_CODEC.map(resourceLocation -> create(resourceKey, resourceLocation), ResourceKey::location).
Parameters
ResourceKey<? extends Registry<T>> resourceKey
ตัวอย่างใช้งาน
ResourceKey<? extends Registry<T>> resourceKey = ...;
StreamCodec<ByteBuf, ResourceKey<T>> result = ResourceKey.streamCodec(resourceKey);
net.minecraft.resources.ResourceKey#toString()
- Origin:
common - Source:
net/minecraft/resources/ResourceKey.java:44 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ ResourceKey
ทำงานยังไง
คืนค่า: "ResourceKey[" + this.registryName + " / " + this.location + "]".
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ResourceLocation
- Full name:
net.minecraft.resources.ResourceLocation - Package:
net.minecraft.resources - Source:
common—net/minecraft/resources/ResourceLocation.java - Type:
class - Modifiers:
public final - Implements:
Comparable<ResourceLocation>
net.minecraft.resources.ResourceLocation#bySeparator(String,char)
- Origin:
common - Source:
net/minecraft/resources/ResourceLocation.java:68 - Modifiers:
public static - Return:
ResourceLocation
คืออะไร
ดำเนินการ bySeparator ตาม implementation ของ ResourceLocation
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: indexOf(), substring(), createUntrusted(), withDefaultNamespace(). มีจุด return อย่างน้อย 3 จุด.
Parameters
String stringchar c
ตัวอย่างใช้งาน
net.minecraft.resources.ResourceLocation#compareTo(ResourceLocation)
- Origin:
common - Source:
net/minecraft/resources/ResourceLocation.java:154 - Modifiers:
public - Return:
int
คืออะไร
เปรียบเทียบ To
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. คืนค่า: i.
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
ResourceLocation instance = ...;
ResourceLocation resourceLocation = ...;
int result = instance.compareTo(resourceLocation);
net.minecraft.resources.ResourceLocation#equals(Object)
- Origin:
common - Source:
net/minecraft/resources/ResourceLocation.java:138 - Modifiers:
public - Return:
boolean
คืออะไร
เปรียบเทียบความเท่ากัน equals
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. คืนค่า: true.
Parameters
Object object
ตัวอย่างใช้งาน
net.minecraft.resources.ResourceLocation#fromNamespaceAndPath(String,String)
- Origin:
common - Source:
net/minecraft/resources/ResourceLocation.java:46 - Modifiers:
public static - Return:
ResourceLocation
คืออะไร
ดำเนินการ fromNamespaceAndPath ตาม implementation ของ ResourceLocation
ทำงานยังไง
เรียกต่อ: createUntrusted(). คืนค่า: createUntrusted(string, string2).
Parameters
String stringString string2
ตัวอย่างใช้งาน
net.minecraft.resources.ResourceLocation#getNamespace()
- Origin:
common - Source:
net/minecraft/resources/ResourceLocation.java:113 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Namespace
ทำงานยังไง
คืนค่า: this.namespace.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.resources.ResourceLocation#getPath()
- Origin:
common - Source:
net/minecraft/resources/ResourceLocation.java:109 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Path
ทำงานยังไง
คืนค่า: this.path.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.resources.ResourceLocation#hashCode()
- Origin:
common - Source:
net/minecraft/resources/ResourceLocation.java:149 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ hashCode ตาม implementation ของ ResourceLocation
ทำงานยังไง
คืนค่า: 31 * this.namespace.hashCode() + this.path.hashCode().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.resources.ResourceLocation#isAllowedInResourceLocation(char)
- Origin:
common - Source:
net/minecraft/resources/ResourceLocation.java:220 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Allowed In Resource Location
ทำงานยังไง
คืนค่า: c >= '0' && c <= '9' || c >= 'a' && c <= 'z' || c == '_' || c == ':' || c == '/' || c == '.' || c == '-'.
Parameters
char c
ตัวอย่างใช้งาน
net.minecraft.resources.ResourceLocation#isValidNamespace(String)
- Origin:
common - Source:
net/minecraft/resources/ResourceLocation.java:234 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Valid Namespace
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: length(), validNamespaceChar(), charAt(). มีจุด return อย่างน้อย 2 จุด.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.resources.ResourceLocation#isValidPath(String)
- Origin:
common - Source:
net/minecraft/resources/ResourceLocation.java:224 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Valid Path
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: length(), validPathChar(), charAt(). มีจุด return อย่างน้อย 2 จุด.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.resources.ResourceLocation#parse(String)
- Origin:
common - Source:
net/minecraft/resources/ResourceLocation.java:50 - Modifiers:
public static - Return:
ResourceLocation
คืออะไร
แปลง/วิเคราะห์ข้อมูล parse
ทำงานยังไง
เรียกต่อ: bySeparator(). คืนค่า: bySeparator(string, ':').
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.resources.ResourceLocation#read(String)
- Origin:
common - Source:
net/minecraft/resources/ResourceLocation.java:101 - Modifiers:
public static - Return:
DataResult<ResourceLocation>
คืออะไร
อ่าน read
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: success(), parse(), error(), getMessage(). มีจุด return อย่างน้อย 2 จุด.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.resources.ResourceLocation#read(StringReader)
- Origin:
common - Source:
net/minecraft/resources/ResourceLocation.java:193 - Modifiers:
public static - Return:
ResourceLocation
คืออะไร
อ่าน read
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: getCursor(), readGreedy(), parse(), setCursor(), createWithContext(). คืนค่า: parse(string).
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
net.minecraft.resources.ResourceLocation#readNonEmpty(StringReader)
- Origin:
common - Source:
net/minecraft/resources/ResourceLocation.java:205 - Modifiers:
public static - Return:
ResourceLocation
คืออะไร
อ่าน Non Empty
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: getCursor(), readGreedy(), isEmpty(), createWithContext(), parse(), setCursor(). คืนค่า: parse(string).
Parameters
StringReader stringReader
Throws
CommandSyntaxException
ตัวอย่างใช้งาน
StringReader stringReader = ...;
ResourceLocation result = ResourceLocation.readNonEmpty(stringReader);
net.minecraft.resources.ResourceLocation#toDebugFileName()
- Origin:
common - Source:
net/minecraft/resources/ResourceLocation.java:163 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toDebugFileName ตาม implementation ของ ResourceLocation
ทำงานยังไง
เรียกต่อ: toString(), replace(). คืนค่า: this.toString().replace('/', '_').replace(':', '_').
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.resources.ResourceLocation#toLanguageKey()
- Origin:
common - Source:
net/minecraft/resources/ResourceLocation.java:167 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toLanguageKey ตาม implementation ของ ResourceLocation
ทำงานยังไง
คืนค่า: this.namespace + "." + this.path.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.resources.ResourceLocation#toLanguageKey(String)
- Origin:
common - Source:
net/minecraft/resources/ResourceLocation.java:175 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toLanguageKey ตาม implementation ของ ResourceLocation
ทำงานยังไง
คืนค่า: string + "." + this.toLanguageKey().
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.resources.ResourceLocation#toLanguageKey(String,String)
- Origin:
common - Source:
net/minecraft/resources/ResourceLocation.java:179 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toLanguageKey ตาม implementation ของ ResourceLocation
ทำงานยังไง
คืนค่า: string + "." + this.toLanguageKey() + "." + string2.
Parameters
String stringString string2
ตัวอย่างใช้งาน
net.minecraft.resources.ResourceLocation#toShortLanguageKey()
- Origin:
common - Source:
net/minecraft/resources/ResourceLocation.java:171 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toShortLanguageKey ตาม implementation ของ ResourceLocation
ทำงานยังไง
เรียกต่อ: equals(), toLanguageKey(). คืนค่า: this.namespace.equals("minecraft") ? this.path : this.toLanguageKey().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.resources.ResourceLocation#toString()
- Origin:
common - Source:
net/minecraft/resources/ResourceLocation.java:133 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ ResourceLocation
ทำงานยังไง
คืนค่า: this.namespace + ":" + this.path.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.resources.ResourceLocation#tryBuild(String,String)
- Origin:
common - Source:
net/minecraft/resources/ResourceLocation.java:63 - Modifiers:
public static - Return:
ResourceLocation
คืออะไร
ดำเนินการ tryBuild ตาม implementation ของ ResourceLocation
ทำงานยังไง
เรียกต่อ: isValidNamespace(), isValidPath(). สร้างออบเจ็กต์: ResourceLocation. คืนค่า: isValidNamespace(string) && isValidPath(string2) ? new ResourceLocation(string, string2) : null.
Parameters
String stringString string2
ตัวอย่างใช้งาน
net.minecraft.resources.ResourceLocation#tryBySeparator(String,char)
- Origin:
common - Source:
net/minecraft/resources/ResourceLocation.java:83 - Modifiers:
public static - Return:
ResourceLocation
คืออะไร
ดำเนินการ tryBySeparator ตาม implementation ของ ResourceLocation
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: indexOf(), substring(), isValidPath(), isValidNamespace(). สร้างออบเจ็กต์: ResourceLocation. มีจุด return อย่างน้อย 4 จุด.
Parameters
String stringchar c
ตัวอย่างใช้งาน
net.minecraft.resources.ResourceLocation#tryParse(String)
- Origin:
common - Source:
net/minecraft/resources/ResourceLocation.java:58 - Modifiers:
public static - Return:
ResourceLocation
คืออะไร
ดำเนินการ tryParse ตาม implementation ของ ResourceLocation
ทำงานยังไง
เรียกต่อ: tryBySeparator(). คืนค่า: tryBySeparator(string, ':').
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.resources.ResourceLocation#validPathChar(char)
- Origin:
common - Source:
net/minecraft/resources/ResourceLocation.java:252 - Modifiers:
public static - Return:
boolean
คืออะไร
ดำเนินการ validPathChar ตาม implementation ของ ResourceLocation
ทำงานยังไง
คืนค่า: c == '_' || c == '-' || c >= 'a' && c <= 'z' || c >= '0' && c <= '9' || c == '/' || c == '.'.
Parameters
char c
ตัวอย่างใช้งาน
net.minecraft.resources.ResourceLocation#withDefaultNamespace(String)
- Origin:
common - Source:
net/minecraft/resources/ResourceLocation.java:54 - Modifiers:
public static - Return:
ResourceLocation
คืออะไร
ดำเนินการ withDefaultNamespace ตาม implementation ของ ResourceLocation
ทำงานยังไง
เรียกต่อ: assertValidPath(). สร้างออบเจ็กต์: ResourceLocation. คืนค่า: new ResourceLocation("minecraft", assertValidPath("minecraft", string)).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.resources.ResourceLocation#withPath(String)
- Origin:
common - Source:
net/minecraft/resources/ResourceLocation.java:117 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
ดำเนินการ withPath ตาม implementation ของ ResourceLocation
ทำงานยังไง
เรียกต่อ: assertValidPath(). สร้างออบเจ็กต์: ResourceLocation. คืนค่า: new ResourceLocation(this.namespace, assertValidPath(this.namespace, string)).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.resources.ResourceLocation#withPath(UnaryOperator<String>)
- Origin:
common - Source:
net/minecraft/resources/ResourceLocation.java:121 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
ดำเนินการ withPath ตาม implementation ของ ResourceLocation
ทำงานยังไง
เรียกต่อ: apply(). คืนค่า: this.withPath(unaryOperator.apply(this.path)).
Parameters
UnaryOperator<String> unaryOperator
ตัวอย่างใช้งาน
ResourceLocation instance = ...;
UnaryOperator<String> unaryOperator = ...;
ResourceLocation result = instance.withPath(unaryOperator);
net.minecraft.resources.ResourceLocation#withPrefix(String)
- Origin:
common - Source:
net/minecraft/resources/ResourceLocation.java:125 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
ดำเนินการ withPrefix ตาม implementation ของ ResourceLocation
ทำงานยังไง
เรียกต่อ: withPath(). คืนค่า: this.withPath(string + this.path).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.resources.ResourceLocation#withSuffix(String)
- Origin:
common - Source:
net/minecraft/resources/ResourceLocation.java:129 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
ดำเนินการ withSuffix ตาม implementation ของ ResourceLocation
ทำงานยังไง
เรียกต่อ: withPath(). คืนค่า: this.withPath(this.path + string).
Parameters
String string
ตัวอย่างใช้งาน
ResourceLocation$Serializer
- Full name:
net.minecraft.resources.ResourceLocation$Serializer - Package:
net.minecraft.resources - Source:
common—net/minecraft/resources/ResourceLocation.java - Type:
class - Modifiers:
public static - Implements:
JsonDeserializer<ResourceLocation>,JsonSerializer<ResourceLocation>
net.minecraft.resources.ResourceLocation$Serializer#deserialize(JsonElement,Type,JsonDeserializationContext)
- Origin:
common - Source:
net/minecraft/resources/ResourceLocation.java:269 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
สร้างออบเจ็กต์กลับจากข้อมูล deserialize
ทำงานยังไง
เรียกต่อ: parse(), convertToString(). คืนค่า: ResourceLocation.parse(GsonHelper.convertToString(jsonElement, "location")).
Parameters
JsonElement jsonElementType typeJsonDeserializationContext jsonDeserializationContext
Throws
JsonParseException
ตัวอย่างใช้งาน
ResourceLocation.Serializer instance = ...;
JsonElement jsonElement = ...;
Type type = ...;
JsonDeserializationContext jsonDeserializationContext = ...;
ResourceLocation result = instance.deserialize(jsonElement, type, jsonDeserializationContext);
net.minecraft.resources.ResourceLocation$Serializer#serialize(ResourceLocation,Type,JsonSerializationContext)
- Origin:
common - Source:
net/minecraft/resources/ResourceLocation.java:273 - Modifiers:
public - Return:
JsonElement
คืออะไร
แปลงเป็นข้อมูลสำหรับบันทึก/ส่ง serialize
ทำงานยังไง
เรียกต่อ: toString(). สร้างออบเจ็กต์: JsonPrimitive. คืนค่า: new JsonPrimitive(resourceLocation.toString()).
Parameters
ResourceLocation resourceLocationType typeJsonSerializationContext jsonSerializationContext
ตัวอย่างใช้งาน
ResourceLocation.Serializer instance = ...;
ResourceLocation resourceLocation = ...;
Type type = ...;
JsonSerializationContext jsonSerializationContext = ...;
JsonElement result = instance.serialize(resourceLocation, type, jsonSerializationContext);