Package net.minecraft.client.renderer.texture.atlas.sources
Part 1/1
DirectoryLister
- Full name:
net.minecraft.client.renderer.texture.atlas.sources.DirectoryLister - Package:
net.minecraft.client.renderer.texture.atlas.sources - Source:
clientOnly—net/minecraft/client/renderer/texture/atlas/sources/DirectoryLister.java - Type:
class - Modifiers:
public - Implements:
SpriteSource
net.minecraft.client.renderer.texture.atlas.sources.DirectoryLister#DirectoryLister(String,String)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/atlas/sources/DirectoryLister.java:27 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DirectoryLister ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: sourcePath, idPrefix.
Parameters
String stringString string2
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.atlas.sources.DirectoryLister#run(ResourceManager,SpriteSource.Output)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/atlas/sources/DirectoryLister.java:32 - Modifiers:
public - Return:
void
คืออะไร
สั่งทำงาน run
ทำงานยังไง
เรียกต่อ: listMatchingResources(), forEach(), fileToId(), withPrefix(), add(). สร้างออบเจ็กต์: FileToIdConverter.
Parameters
ResourceManager resourceManagerSpriteSource.Output output
ตัวอย่างใช้งาน
DirectoryLister instance = ...;
ResourceManager resourceManager = ...;
SpriteSource.Output output = ...;
instance.run(resourceManager, output);
net.minecraft.client.renderer.texture.atlas.sources.DirectoryLister#type()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/atlas/sources/DirectoryLister.java:41 - Modifiers:
public - Return:
SpriteSourceType
คืออะไร
ดำเนินการ type ตาม implementation ของ DirectoryLister
ทำงานยังไง
คืนค่า: SpriteSources.DIRECTORY.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LazyLoadedImage
- Full name:
net.minecraft.client.renderer.texture.atlas.sources.LazyLoadedImage - Package:
net.minecraft.client.renderer.texture.atlas.sources - Source:
clientOnly—net/minecraft/client/renderer/texture/atlas/sources/LazyLoadedImage.java - Type:
class - Modifiers:
public
net.minecraft.client.renderer.texture.atlas.sources.LazyLoadedImage#get()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/atlas/sources/LazyLoadedImage.java:26 - Modifiers:
public - Return:
NativeImage
คืออะไร
อ่านค่า get
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception ; มีส่วนที่ synchronize การทำงาน. เรียกต่อ: open(), read(), set(). สร้างออบเจ็กต์: IOException. คืนค่า: nativeImage.
Parameters
- ไม่มี
Throws
IOException
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.atlas.sources.LazyLoadedImage#LazyLoadedImage(ResourceLocation,Resource,int)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/atlas/sources/LazyLoadedImage.java:20 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LazyLoadedImage ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: id, resource, referenceCount. สร้างออบเจ็กต์: AtomicInteger.
Parameters
ResourceLocation resourceLocationResource resourceint i
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
Resource resource = ...;
LazyLoadedImage instance = new LazyLoadedImage(resourceLocation, resource, 0);
net.minecraft.client.renderer.texture.atlas.sources.LazyLoadedImage#release()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/atlas/sources/LazyLoadedImage.java:45 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ release ตาม implementation ของ LazyLoadedImage
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: decrementAndGet(), getAndSet(), close().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
PalettedPermutations
- Full name:
net.minecraft.client.renderer.texture.atlas.sources.PalettedPermutations - Package:
net.minecraft.client.renderer.texture.atlas.sources - Source:
clientOnly—net/minecraft/client/renderer/texture/atlas/sources/PalettedPermutations.java - Type:
class - Modifiers:
public - Implements:
SpriteSource
net.minecraft.client.renderer.texture.atlas.sources.PalettedPermutations#run(ResourceManager,SpriteSource.Output)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/atlas/sources/PalettedPermutations.java:57 - Modifiers:
public - Return:
void
คืออะไร
สั่งทำงาน run
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: memoize(), loadPaletteEntryFromImage(), forEach(), put(), createPaletteMapping(), get(), idToFile(), getResource(). สร้างออบเจ็กต์: HashMap<>, LazyLoadedImage, PalettedPermutations.PalettedSpriteSupplier.
Parameters
ResourceManager resourceManagerSpriteSource.Output output
ตัวอย่างใช้งาน
PalettedPermutations instance = ...;
ResourceManager resourceManager = ...;
SpriteSource.Output output = ...;
instance.run(resourceManager, output);
net.minecraft.client.renderer.texture.atlas.sources.PalettedPermutations#type()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/atlas/sources/PalettedPermutations.java:130 - Modifiers:
public - Return:
SpriteSourceType
คืออะไร
ดำเนินการ type ตาม implementation ของ PalettedPermutations
ทำงานยังไง
คืนค่า: SpriteSources.PALETTED_PERMUTATIONS.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SingleFile
- Full name:
net.minecraft.client.renderer.texture.atlas.sources.SingleFile - Package:
net.minecraft.client.renderer.texture.atlas.sources - Source:
clientOnly—net/minecraft/client/renderer/texture/atlas/sources/SingleFile.java - Type:
class - Modifiers:
public - Implements:
SpriteSource
net.minecraft.client.renderer.texture.atlas.sources.SingleFile#run(ResourceManager,SpriteSource.Output)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/atlas/sources/SingleFile.java:35 - Modifiers:
public - Return:
void
คืออะไร
สั่งทำงาน run
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: idToFile(), getResource(), isPresent(), add(), orElse(), get(), warn().
Parameters
ResourceManager resourceManagerSpriteSource.Output output
ตัวอย่างใช้งาน
SingleFile instance = ...;
ResourceManager resourceManager = ...;
SpriteSource.Output output = ...;
instance.run(resourceManager, output);
net.minecraft.client.renderer.texture.atlas.sources.SingleFile#SingleFile(ResourceLocation,Optional<ResourceLocation>)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/atlas/sources/SingleFile.java:30 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SingleFile ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: resourceId, spriteId.
Parameters
ResourceLocation resourceLocationOptional<ResourceLocation> optional
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
Optional<ResourceLocation> optional = ...;
SingleFile instance = new SingleFile(resourceLocation, optional);
net.minecraft.client.renderer.texture.atlas.sources.SingleFile#type()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/atlas/sources/SingleFile.java:46 - Modifiers:
public - Return:
SpriteSourceType
คืออะไร
ดำเนินการ type ตาม implementation ของ SingleFile
ทำงานยังไง
คืนค่า: SpriteSources.SINGLE_FILE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SourceFilter
- Full name:
net.minecraft.client.renderer.texture.atlas.sources.SourceFilter - Package:
net.minecraft.client.renderer.texture.atlas.sources - Source:
clientOnly—net/minecraft/client/renderer/texture/atlas/sources/SourceFilter.java - Type:
class - Modifiers:
public - Implements:
SpriteSource
net.minecraft.client.renderer.texture.atlas.sources.SourceFilter#run(ResourceManager,SpriteSource.Output)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/atlas/sources/SourceFilter.java:25 - Modifiers:
public - Return:
void
คืออะไร
สั่งทำงาน run
ทำงานยังไง
เรียกต่อ: removeAll(), locationPredicate().
Parameters
ResourceManager resourceManagerSpriteSource.Output output
ตัวอย่างใช้งาน
SourceFilter instance = ...;
ResourceManager resourceManager = ...;
SpriteSource.Output output = ...;
instance.run(resourceManager, output);
net.minecraft.client.renderer.texture.atlas.sources.SourceFilter#SourceFilter(ResourceLocationPattern)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/atlas/sources/SourceFilter.java:21 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SourceFilter ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: filter.
Parameters
ResourceLocationPattern resourceLocationPattern
ตัวอย่างใช้งาน
ResourceLocationPattern resourceLocationPattern = ...;
SourceFilter instance = new SourceFilter(resourceLocationPattern);
net.minecraft.client.renderer.texture.atlas.sources.SourceFilter#type()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/atlas/sources/SourceFilter.java:30 - Modifiers:
public - Return:
SpriteSourceType
คืออะไร
ดำเนินการ type ตาม implementation ของ SourceFilter
ทำงานยังไง
คืนค่า: SpriteSources.FILTER.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Unstitcher
- Full name:
net.minecraft.client.renderer.texture.atlas.sources.Unstitcher - Package:
net.minecraft.client.renderer.texture.atlas.sources - Source:
clientOnly—net/minecraft/client/renderer/texture/atlas/sources/Unstitcher.java - Type:
class - Modifiers:
public - Implements:
SpriteSource
net.minecraft.client.renderer.texture.atlas.sources.Unstitcher#run(ResourceManager,SpriteSource.Output)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/atlas/sources/Unstitcher.java:51 - Modifiers:
public - Return:
void
คืออะไร
สั่งทำงาน run
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: idToFile(), getResource(), isPresent(), get(), size(), add(), RegionInstance(), warn(). สร้างออบเจ็กต์: LazyLoadedImage, Unstitcher.RegionInstance.
Parameters
ResourceManager resourceManagerSpriteSource.Output output
ตัวอย่างใช้งาน
Unstitcher instance = ...;
ResourceManager resourceManager = ...;
SpriteSource.Output output = ...;
instance.run(resourceManager, output);
net.minecraft.client.renderer.texture.atlas.sources.Unstitcher#type()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/atlas/sources/Unstitcher.java:66 - Modifiers:
public - Return:
SpriteSourceType
คืออะไร
ดำเนินการ type ตาม implementation ของ Unstitcher
ทำงานยังไง
คืนค่า: SpriteSources.UNSTITCHER.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.atlas.sources.Unstitcher#Unstitcher(ResourceLocation,List<Unstitcher.Region>,double,double)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/atlas/sources/Unstitcher.java:44 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Unstitcher ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: resource, regions, xDivisor, yDivisor.
Parameters
ResourceLocation resourceLocationList<Unstitcher.Region> listdouble ddouble e
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
List<Unstitcher.Region> list = ...;
Unstitcher instance = new Unstitcher(resourceLocation, list, 0.0D, 0.0D);