Package net.minecraft.client.renderer.texture
Part 1/1
AbstractTexture
- Full name:
net.minecraft.client.renderer.texture.AbstractTexture - Package:
net.minecraft.client.renderer.texture - Source:
clientOnly—net/minecraft/client/renderer/texture/AbstractTexture.java - Type:
class - Modifiers:
public abstract - Implements:
AutoCloseable
net.minecraft.client.renderer.texture.AbstractTexture#bind()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/AbstractTexture.java:103 - Modifiers:
public - Return:
void
คืออะไร
ผูก bind
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isOnRenderThreadOrInit(), recordRenderCall(), _bindTexture(), getId().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.AbstractTexture#close()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/AbstractTexture.java:111 - Modifiers:
public - Return:
void
คืออะไร
ปิด close
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.AbstractTexture#getId()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/AbstractTexture.java:80 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Id
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: id. เรียกต่อ: assertOnRenderThreadOrInit(), generateTextureId(). คืนค่า: this.id.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.AbstractTexture#releaseId()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/AbstractTexture.java:89 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ releaseId ตาม implementation ของ AbstractTexture
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: id. เรียกต่อ: isOnRenderThread(), recordRenderCall(), releaseTextureId().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.AbstractTexture#setClamp(boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/AbstractTexture.java:20 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Clamp
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: wrapS, wrapT. เรียกต่อ: assertOnRenderThreadOrInit(), bind(), _texParameter().
Parameters
boolean bl
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.AbstractTexture#setFilter(boolean,boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/AbstractTexture.java:52 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Filter
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: minFilter, magFilter. เรียกต่อ: assertOnRenderThreadOrInit(), bind(), _texParameter().
Parameters
boolean blboolean bl2
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.AbstractTexture#setFilter(TriState,boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/AbstractTexture.java:48 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Filter
ทำงานยังไง
เรียกต่อ: toBoolean().
Parameters
TriState triStateboolean bl
ตัวอย่างใช้งาน
Dumpable
- Full name:
net.minecraft.client.renderer.texture.Dumpable - Package:
net.minecraft.client.renderer.texture - Source:
clientOnly—net/minecraft/client/renderer/texture/Dumpable.java - Type:
interface - Modifiers:
public
net.minecraft.client.renderer.texture.Dumpable#dumpContents(ResourceLocation,Path)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/Dumpable.java:11 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ dumpContents ตาม implementation ของ Dumpable
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
ResourceLocation resourceLocationPath path
Throws
IOException
ตัวอย่างใช้งาน
Dumpable instance = ...;
ResourceLocation resourceLocation = ...;
Path path = ...;
instance.dumpContents(resourceLocation, path);
DynamicTexture
- Full name:
net.minecraft.client.renderer.texture.DynamicTexture - Package:
net.minecraft.client.renderer.texture - Source:
clientOnly—net/minecraft/client/renderer/texture/DynamicTexture.java - Type:
class - Modifiers:
public - Extends:
AbstractTexture - Implements:
Dumpable
net.minecraft.client.renderer.texture.DynamicTexture#close()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/DynamicTexture.java:61 - Modifiers:
public - Return:
void
คืออะไร
ปิด close
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: pixels. เรียกต่อ: releaseId().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.DynamicTexture#dumpContents(ResourceLocation,Path)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/DynamicTexture.java:70 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ dumpContents ตาม implementation ของ DynamicTexture
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: toDebugFileName(), resolve(), writeToFile().
Parameters
ResourceLocation resourceLocationPath path
Throws
IOException
ตัวอย่างใช้งาน
DynamicTexture instance = ...;
ResourceLocation resourceLocation = ...;
Path path = ...;
instance.dumpContents(resourceLocation, path);
net.minecraft.client.renderer.texture.DynamicTexture#DynamicTexture(int,int,boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/DynamicTexture.java:34 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DynamicTexture ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: pixels. เรียกต่อ: prepareImage(), getId(), getWidth(), getHeight(). สร้างออบเจ็กต์: NativeImage.
Parameters
int iint jboolean bl
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.DynamicTexture#DynamicTexture(NativeImage)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/DynamicTexture.java:21 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DynamicTexture ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: pixels. เรียกต่อ: isOnRenderThread(), recordRenderCall(), prepareImage(), getId(), getWidth(), getHeight(), upload().
Parameters
NativeImage nativeImage
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.DynamicTexture#getPixels()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/DynamicTexture.java:48 - Modifiers:
public - Return:
NativeImage
คืออะไร
อ่านค่า Pixels
ทำงานยังไง
คืนค่า: this.pixels.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.DynamicTexture#setPixels(NativeImage)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/DynamicTexture.java:53 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Pixels
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: pixels. เรียกต่อ: close().
Parameters
NativeImage nativeImage
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.DynamicTexture#upload()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/DynamicTexture.java:39 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ upload ตาม implementation ของ DynamicTexture
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: bind(), warn(), getId().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
MipmapGenerator
- Full name:
net.minecraft.client.renderer.texture.MipmapGenerator - Package:
net.minecraft.client.renderer.texture - Source:
clientOnly—net/minecraft/client/renderer/texture/MipmapGenerator.java - Type:
class - Modifiers:
public
net.minecraft.client.renderer.texture.MipmapGenerator#generateMipLevels(NativeImage[],int)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/MipmapGenerator.java:21 - Modifiers:
public static - Return:
NativeImage[]
คืออะไร
ดำเนินการ generateMipLevels ตาม implementation ของ MipmapGenerator
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: hasTransparentPixel(), getWidth(), getHeight(), setPixel(), alphaBlend(), getPixel(). สร้างออบเจ็กต์: NativeImage. มีจุด return อย่างน้อย 2 จุด.
Parameters
NativeImage[] nativeImagesint i
ตัวอย่างใช้งาน
NativeImage[] nativeImages = ...;
NativeImage[] result = MipmapGenerator.generateMipLevels(nativeImages, 0);
MissingTextureAtlasSprite
- Full name:
net.minecraft.client.renderer.texture.MissingTextureAtlasSprite - Package:
net.minecraft.client.renderer.texture - Source:
clientOnly—net/minecraft/client/renderer/texture/MissingTextureAtlasSprite.java - Type:
class - Modifiers:
public final
net.minecraft.client.renderer.texture.MissingTextureAtlasSprite#create()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/MissingTextureAtlasSprite.java:38 - Modifiers:
public static - Return:
SpriteContents
คืออะไร
สร้าง create
ทำงานยังไง
เรียกต่อ: generateMissingImage(). สร้างออบเจ็กต์: SpriteContents, FrameSize. คืนค่า: new SpriteContents(MISSING_TEXTURE_LOCATION, new FrameSize(16, 16), nativeImage, ResourceMetadata.EMPTY).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.MissingTextureAtlasSprite#generateMissingImage()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/MissingTextureAtlasSprite.java:17 - Modifiers:
public static - Return:
NativeImage
คืออะไร
ดำเนินการ generateMissingImage ตาม implementation ของ MissingTextureAtlasSprite
ทำงานยังไง
คืนค่า: generateMissingImage(16, 16).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.MissingTextureAtlasSprite#generateMissingImage(int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/MissingTextureAtlasSprite.java:21 - Modifiers:
public static - Return:
NativeImage
คืออะไร
ดำเนินการ generateMissingImage ตาม implementation ของ MissingTextureAtlasSprite
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: setPixel(). สร้างออบเจ็กต์: NativeImage. คืนค่า: nativeImage.
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.MissingTextureAtlasSprite#getLocation()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/MissingTextureAtlasSprite.java:43 - Modifiers:
public static - Return:
ResourceLocation
คืออะไร
อ่านค่า Location
ทำงานยังไง
คืนค่า: MISSING_TEXTURE_LOCATION.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
OverlayTexture
- Full name:
net.minecraft.client.renderer.texture.OverlayTexture - Package:
net.minecraft.client.renderer.texture - Source:
clientOnly—net/minecraft/client/renderer/texture/OverlayTexture.java - Type:
class - Modifiers:
public - Implements:
AutoCloseable
net.minecraft.client.renderer.texture.OverlayTexture#close()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/OverlayTexture.java:40 - Modifiers:
public - Return:
void
คืออะไร
ปิด close
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.OverlayTexture#OverlayTexture()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/OverlayTexture.java:18 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ OverlayTexture ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getPixels(), setPixel(), color(), activeTexture(), bind(), setFilter(), setClamp(), upload().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.OverlayTexture#pack(float,boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/OverlayTexture.java:61 - Modifiers:
public static - Return:
int
คืออะไร
ดำเนินการ pack ตาม implementation ของ OverlayTexture
ทำงานยังไง
เรียกต่อ: u(), v(). คืนค่า: pack(u(f), v(bl)).
Parameters
float fboolean bl
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.OverlayTexture#pack(int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/OverlayTexture.java:57 - Modifiers:
public static - Return:
int
คืออะไร
ดำเนินการ pack ตาม implementation ของ OverlayTexture
ทำงานยังไง
คืนค่า: i | j << 16.
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.OverlayTexture#setupOverlayColor()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/OverlayTexture.java:45 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ setupOverlayColor ตาม implementation ของ OverlayTexture
ทำงานยังไง
เรียกต่อ: getId().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.OverlayTexture#teardownOverlayColor()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/OverlayTexture.java:65 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ teardownOverlayColor ตาม implementation ของ OverlayTexture
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.OverlayTexture#u(float)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/OverlayTexture.java:49 - Modifiers:
public static - Return:
int
คืออะไร
ดำเนินการ u ตาม implementation ของ OverlayTexture
ทำงานยังไง
คืนค่า: (int)(f * 15.0F).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.OverlayTexture#v(boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/OverlayTexture.java:53 - Modifiers:
public static - Return:
int
คืออะไร
ดำเนินการ v ตาม implementation ของ OverlayTexture
ทำงานยังไง
คืนค่า: bl ? 3 : 10.
Parameters
boolean bl
ตัวอย่างใช้งาน
ReloadableTexture
- Full name:
net.minecraft.client.renderer.texture.ReloadableTexture - Package:
net.minecraft.client.renderer.texture - Source:
clientOnly—net/minecraft/client/renderer/texture/ReloadableTexture.java - Type:
class - Modifiers:
public abstract - Extends:
AbstractTexture
net.minecraft.client.renderer.texture.ReloadableTexture#apply(TextureContents)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/ReloadableTexture.java:24 - Modifiers:
public - Return:
void
คืออะไร
นำไปใช้ apply
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: defaultBlur. เรียกต่อ: clamp(), blur(), image(), isOnRenderThreadOrInit(), recordRenderCall(), doLoad().
Parameters
TextureContents textureContents
ตัวอย่างใช้งาน
ReloadableTexture instance = ...;
TextureContents textureContents = ...;
instance.apply(textureContents);
net.minecraft.client.renderer.texture.ReloadableTexture#loadContents(ResourceManager)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/ReloadableTexture.java:43 - Modifiers:
public abstract - Return:
TextureContents
คืออะไร
โหลด Contents
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
ResourceManager resourceManager
Throws
IOException
ตัวอย่างใช้งาน
ReloadableTexture instance = ...;
ResourceManager resourceManager = ...;
TextureContents result = instance.loadContents(resourceManager);
net.minecraft.client.renderer.texture.ReloadableTexture#ReloadableTexture(ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/ReloadableTexture.java:16 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ReloadableTexture ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: resourceId.
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
ReloadableTexture instance = new ReloadableTexture(resourceLocation);
net.minecraft.client.renderer.texture.ReloadableTexture#resourceId()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/ReloadableTexture.java:20 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
ดำเนินการ resourceId ตาม implementation ของ ReloadableTexture
ทำงานยังไง
คืนค่า: this.resourceId.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SimpleTexture
- Full name:
net.minecraft.client.renderer.texture.SimpleTexture - Package:
net.minecraft.client.renderer.texture - Source:
clientOnly—net/minecraft/client/renderer/texture/SimpleTexture.java - Type:
class - Modifiers:
public - Extends:
ReloadableTexture
net.minecraft.client.renderer.texture.SimpleTexture#loadContents(ResourceManager)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/SimpleTexture.java:15 - Modifiers:
public - Return:
TextureContents
คืออะไร
โหลด Contents
ทำงานยังไง
เรียกต่อ: load(), resourceId(). คืนค่า: TextureContents.load(resourceManager, this.resourceId()).
Parameters
ResourceManager resourceManager
Throws
IOException
ตัวอย่างใช้งาน
SimpleTexture instance = ...;
ResourceManager resourceManager = ...;
TextureContents result = instance.loadContents(resourceManager);
net.minecraft.client.renderer.texture.SimpleTexture#SimpleTexture(ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/SimpleTexture.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SimpleTexture ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
SimpleTexture instance = new SimpleTexture(resourceLocation);
SkinTextureDownloader
- Full name:
net.minecraft.client.renderer.texture.SkinTextureDownloader - Package:
net.minecraft.client.renderer.texture - Source:
clientOnly—net/minecraft/client/renderer/texture/SkinTextureDownloader.java - Type:
class - Modifiers:
public
net.minecraft.client.renderer.texture.SkinTextureDownloader#downloadAndRegisterSkin(ResourceLocation,Path,String,boolean)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/SkinTextureDownloader.java:29 - Modifiers:
public static - Return:
CompletableFuture<ResourceLocation>
คืออะไร
ดำเนินการ downloadAndRegisterSkin ตาม implementation ของ SkinTextureDownloader
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: supplyAsync(), downloadSkin(), processLegacySkin(), nonCriticalIoPool(), forName(), thenCompose(), registerTextureInManager(). สร้างออบเจ็กต์: UncheckedIOException. มีจุด return อย่างน้อย 2 จุด.
Parameters
ResourceLocation resourceLocationPath pathString stringboolean bl
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
Path path = ...;
CompletableFuture<ResourceLocation> result = SkinTextureDownloader.downloadAndRegisterSkin(resourceLocation, path, "value", true);
SpriteContents
- Full name:
net.minecraft.client.renderer.texture.SpriteContents - Package:
net.minecraft.client.renderer.texture - Source:
clientOnly—net/minecraft/client/renderer/texture/SpriteContents.java - Type:
class - Modifiers:
public - Implements:
Stitcher.Entry,AutoCloseable
net.minecraft.client.renderer.texture.SpriteContents#close()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/SpriteContents.java:165 - Modifiers:
public - Return:
void
คืออะไร
ปิด close
ทำงานยังไง
มีการวนลูป.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.SpriteContents#createTicker()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/SpriteContents.java:156 - Modifiers:
public - Return:
SpriteTicker
คืออะไร
สร้าง Ticker
ทำงานยังไง
คืนค่า: this.animatedTexture != null ? this.animatedTexture.createTicker() : null.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.SpriteContents#getUniqueFrames()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/SpriteContents.java:152 - Modifiers:
public - Return:
IntStream
คืออะไร
อ่านค่า Unique Frames
ทำงานยังไง
เรียกต่อ: of(). คืนค่า: this.animatedTexture != null ? this.animatedTexture.getUniqueFrames() : IntStream.of(1).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.SpriteContents#height()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/SpriteContents.java:142 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ height ตาม implementation ของ SpriteContents
ทำงานยังไง
คืนค่า: this.height.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.SpriteContents#increaseMipLevel(int)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/SpriteContents.java:50 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ increaseMipLevel ตาม implementation ของ SpriteContents
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. แก้ state: byMipLevel. เรียกต่อ: generateMipLevels(), forThrowable(), addCategory(), setDetail(), length(), append(), getWidth(), getHeight(). สร้างออบเจ็กต์: StringBuilder, ReportedException. คืนค่า: stringBuilder.toString().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.SpriteContents#isTransparent(int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/SpriteContents.java:177 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Transparent
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getFrameX(), getFrameY(), alpha(), getPixel(). คืนค่า: ARGB.alpha(this.originalImage.getPixel(l, m)) == 0.
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.SpriteContents#metadata()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/SpriteContents.java:161 - Modifiers:
public - Return:
ResourceMetadata
คืออะไร
ดำเนินการ metadata ตาม implementation ของ SpriteContents
ทำงานยังไง
คืนค่า: this.metadata.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.SpriteContents#name()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/SpriteContents.java:147 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
ดำเนินการ name ตาม implementation ของ SpriteContents
ทำงานยังไง
คืนค่า: this.name.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.SpriteContents#SpriteContents(ResourceLocation,FrameSize,NativeImage,ResourceMetadata)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/SpriteContents.java:38 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SpriteContents ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: name, width, height, metadata, animatedTexture, originalImage. เรียกต่อ: width(), height(), getSection(), map(), createAnimatedTexture(), getWidth(), getHeight(), orElse().
Parameters
ResourceLocation resourceLocationFrameSize frameSizeNativeImage nativeImageResourceMetadata resourceMetadata
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
FrameSize frameSize = ...;
NativeImage nativeImage = ...;
ResourceMetadata resourceMetadata = ...;
SpriteContents instance = new SpriteContents(resourceLocation, frameSize, nativeImage, resourceMetadata);
net.minecraft.client.renderer.texture.SpriteContents#toString()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/SpriteContents.java:172 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ SpriteContents
ทำงานยังไง
เรียกต่อ: getFrameCount(). คืนค่า: "SpriteContents{name=" + this.name + ", frameCount=" + this.getFrameCount() + ", height=" + this.height + ", width=" + this.width + "}".
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.SpriteContents#uploadFirstFrame(int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/SpriteContents.java:188 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ uploadFirstFrame ตาม implementation ของ SpriteContents
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: upload().
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.SpriteContents#width()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/SpriteContents.java:137 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ width ตาม implementation ของ SpriteContents
ทำงานยังไง
คืนค่า: this.width.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SpriteLoader
- Full name:
net.minecraft.client.renderer.texture.SpriteLoader - Package:
net.minecraft.client.renderer.texture - Source:
clientOnly—net/minecraft/client/renderer/texture/SpriteLoader.java - Type:
class - Modifiers:
public
net.minecraft.client.renderer.texture.SpriteLoader#create(TextureAtlas)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/SpriteLoader.java:46 - Modifiers:
public static - Return:
SpriteLoader
คืออะไร
สร้าง create
ทำงานยังไง
เรียกต่อ: location(), maxSupportedTextureSize(), getWidth(), getHeight(). สร้างออบเจ็กต์: SpriteLoader. คืนค่า: new SpriteLoader(textureAtlas.location(), textureAtlas.maxSupportedTextureSize(), textureAtlas.getWidth(), textureAtlas.getHeight()).
Parameters
TextureAtlas textureAtlas
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.SpriteLoader#loadAndStitch(ResourceManager,ResourceLocation,int,Executor)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/SpriteLoader.java:125 - Modifiers:
public - Return:
CompletableFuture<SpriteLoader.Preparations>
คืออะไร
โหลด And Stitch
ทำงานยังไง
คืนค่า: this.loadAndStitch(resourceManager, resourceLocation, i, executor, DEFAULT_METADATA_SECTIONS).
Parameters
ResourceManager resourceManagerResourceLocation resourceLocationint iExecutor executor
ตัวอย่างใช้งาน
SpriteLoader instance = ...;
ResourceManager resourceManager = ...;
ResourceLocation resourceLocation = ...;
Executor executor = ...;
CompletableFuture<SpriteLoader.Preparations> result = instance.loadAndStitch(resourceManager, resourceLocation, 0, executor);
net.minecraft.client.renderer.texture.SpriteLoader#loadAndStitch(ResourceManager,ResourceLocation,int,Executor,Collection<MetadataSectionType<?>>)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/SpriteLoader.java:129 - Modifiers:
public - Return:
CompletableFuture<SpriteLoader.Preparations>
คืออะไร
โหลด And Stitch
ทำงานยังไง
เรียกต่อ: create(), supplyAsync(), load(), list(), thenCompose(), runSpriteSuppliers(), thenApply(), stitch().
Parameters
ResourceManager resourceManagerResourceLocation resourceLocationint iExecutor executorCollection<MetadataSectionType<?>> collection
ตัวอย่างใช้งาน
SpriteLoader instance = ...;
ResourceManager resourceManager = ...;
ResourceLocation resourceLocation = ...;
Executor executor = ...;
Collection<MetadataSectionType<?>> collection = ...;
CompletableFuture<SpriteLoader.Preparations> result = instance.loadAndStitch(resourceManager, resourceLocation, 0, executor, collection);
net.minecraft.client.renderer.texture.SpriteLoader#runSpriteSuppliers(SpriteResourceLoader,List<Function<SpriteResourceLoader, SpriteContents>>,Executor)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/SpriteLoader.java:116 - Modifiers:
public static - Return:
CompletableFuture<List<SpriteContents>>
คืออะไร
สั่งทำงาน Sprite Suppliers
ทำงานยังไง
เรียกต่อ: stream(), map(), supplyAsync(), apply(), toList(), sequence(), thenApply(), filter(). คืนค่า: Util.sequence(list2).thenApply(listx -> listx.stream().filter(Objects::nonNull).toList()).
Parameters
SpriteResourceLoader spriteResourceLoaderList<Function<SpriteResourceLoader, SpriteContents>> listExecutor executor
ตัวอย่างใช้งาน
SpriteResourceLoader spriteResourceLoader = ...;
List<Function<SpriteResourceLoader, SpriteContents>> list = ...;
Executor executor = ...;
CompletableFuture<List<SpriteContents>> result = SpriteLoader.runSpriteSuppliers(spriteResourceLoader, list, executor);
net.minecraft.client.renderer.texture.SpriteLoader#SpriteLoader(ResourceLocation,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/SpriteLoader.java:39 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SpriteLoader ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: location, maxSupportedTextureSize, minWidth, minHeight.
Parameters
ResourceLocation resourceLocationint iint jint k
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
SpriteLoader instance = new SpriteLoader(resourceLocation, 0, 0, 0);
net.minecraft.client.renderer.texture.SpriteLoader#stitch(List<SpriteContents>,int,Executor)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/SpriteLoader.java:50 - Modifiers:
public - Return:
SpriteLoader.Preparations
คืออะไร
ดำเนินการ stitch ตาม implementation ของ SpriteLoader
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: min(), width(), height(), lowestOneBit(), warn(), name(), log2(), registerSprite(). สร้างออบเจ็กต์: Stitcher<>, ReportedException, SpriteLoader.Preparations. คืนค่า: new SpriteLoader.Preparations(p, q, m, textureAtlasSprite, map, completableFuture).
Parameters
List<SpriteContents> listint iExecutor executor
ตัวอย่างใช้งาน
SpriteLoader instance = ...;
List<SpriteContents> list = ...;
Executor executor = ...;
SpriteLoader.Preparations result = instance.stitch(list, 0, executor);
SpriteLoader$Preparations
- Full name:
net.minecraft.client.renderer.texture.SpriteLoader$Preparations - Package:
net.minecraft.client.renderer.texture - Source:
clientOnly—net/minecraft/client/renderer/texture/SpriteLoader.java - Type:
record - Modifiers:
public
net.minecraft.client.renderer.texture.SpriteLoader$Preparations#waitForUpload()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/SpriteLoader.java:150 - Modifiers:
public - Return:
CompletableFuture<SpriteLoader.Preparations>
คืออะไร
ดำเนินการ waitForUpload ตาม implementation ของ SpriteLoader$Preparations
ทำงานยังไง
เรียกต่อ: thenApply(). คืนค่า: this.readyForUpload.thenApply(void_ -> this).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SpriteLoader.Preparations instance = ...;
CompletableFuture<SpriteLoader.Preparations> result = instance.waitForUpload();
SpriteTicker
- Full name:
net.minecraft.client.renderer.texture.SpriteTicker - Package:
net.minecraft.client.renderer.texture - Source:
clientOnly—net/minecraft/client/renderer/texture/SpriteTicker.java - Type:
interface - Modifiers:
public - Implements:
AutoCloseable
net.minecraft.client.renderer.texture.SpriteTicker#close()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/SpriteTicker.java:10 - Modifiers: ``
- Return:
void
คืออะไร
ปิด close
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.SpriteTicker#tickAndUpload(int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/SpriteTicker.java:8 - Modifiers: ``
- Return:
void
คืออะไร
ประมวลผล tick And Upload
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
int iint j
ตัวอย่างใช้งาน
Stitcher
- Full name:
net.minecraft.client.renderer.texture.Stitcher - Package:
net.minecraft.client.renderer.texture - Source:
clientOnly—net/minecraft/client/renderer/texture/Stitcher.java - Type:
class - Modifiers:
public
net.minecraft.client.renderer.texture.Stitcher#gatherSprites(Stitcher.SpriteLoader<T>)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/Stitcher.java:56 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ gatherSprites ตาม implementation ของ Stitcher
ทำงานยังไง
มีการวนลูป. เรียกต่อ: walk().
Parameters
Stitcher.SpriteLoader<T> spriteLoader
ตัวอย่างใช้งาน
Stitcher instance = ...;
Stitcher.SpriteLoader<T> spriteLoader = ...;
instance.gatherSprites(spriteLoader);
net.minecraft.client.renderer.texture.Stitcher#getHeight()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/Stitcher.java:36 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Height
ทำงานยังไง
คืนค่า: this.storageY.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.Stitcher#getWidth()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/Stitcher.java:32 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Width
ทำงานยังไง
คืนค่า: this.storageX.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.Stitcher#registerSprite(T)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/Stitcher.java:40 - Modifiers:
public - Return:
void
คืออะไร
ลงทะเบียน Sprite
ทำงานยังไง
เรียกต่อ: add(). สร้างออบเจ็กต์: Stitcher.Holder<>.
Parameters
T entry
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.Stitcher#stitch()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/Stitcher.java:45 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ stitch ตาม implementation ของ Stitcher
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: sort(), addToStorage(), stream(), map(), collect(), toImmutableList(). สร้างออบเจ็กต์: ArrayList<>, StitcherException.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.Stitcher#Stitcher(int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/Stitcher.java:26 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Stitcher ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: mipLevel, maxWidth, maxHeight.
Parameters
int iint jint k
ตัวอย่างใช้งาน
Stitcher$Entry
- Full name:
net.minecraft.client.renderer.texture.Stitcher$Entry - Package:
net.minecraft.client.renderer.texture - Source:
clientOnly—net/minecraft/client/renderer/texture/Stitcher.java - Type:
interface - Modifiers:
public
net.minecraft.client.renderer.texture.Stitcher$Entry#height()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/Stitcher.java:118 - Modifiers: ``
- Return:
int
คืออะไร
ดำเนินการ height ตาม implementation ของ Stitcher$Entry
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.Stitcher$Entry#name()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/Stitcher.java:120 - Modifiers: ``
- Return:
ResourceLocation
คืออะไร
ดำเนินการ name ตาม implementation ของ Stitcher$Entry
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.Stitcher$Entry#width()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/Stitcher.java:116 - Modifiers: ``
- Return:
int
คืออะไร
ดำเนินการ width ตาม implementation ของ Stitcher$Entry
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Stitcher$Region
- Full name:
net.minecraft.client.renderer.texture.Stitcher$Region - Package:
net.minecraft.client.renderer.texture - Source:
clientOnly—net/minecraft/client/renderer/texture/Stitcher.java - Type:
class - Modifiers:
public static
net.minecraft.client.renderer.texture.Stitcher$Region#add(Stitcher.Holder<T>)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/Stitcher.java:157 - Modifiers:
public - Return:
boolean
คืออะไร
เพิ่ม add
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: holder, subSlots. เรียกต่อ: max(). สร้างออบเจ็กต์: ArrayList<>, Stitcher.Region<>. มีจุด return อย่างน้อย 5 จุด.
Parameters
Stitcher.Holder<T> holder
ตัวอย่างใช้งาน
Stitcher.Region instance = ...;
Stitcher.Holder<T> holder = ...;
boolean result = instance.add(holder);
net.minecraft.client.renderer.texture.Stitcher$Region#getX()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/Stitcher.java:149 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า X
ทำงานยังไง
คืนค่า: this.originX.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.Stitcher$Region#getY()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/Stitcher.java:153 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Y
ทำงานยังไง
คืนค่า: this.originY.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.Stitcher$Region#Region(int,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/Stitcher.java:142 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Stitcher.Region ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: originX, originY, width, height.
Parameters
int iint jint kint l
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.Stitcher$Region#toString()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/Stitcher.java:214 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ Stitcher$Region
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.Stitcher$Region#walk(Stitcher.SpriteLoader<T>)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/Stitcher.java:204 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ walk ตาม implementation ของ Stitcher$Region
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: load(), getX(), getY().
Parameters
Stitcher.SpriteLoader<T> spriteLoader
ตัวอย่างใช้งาน
Stitcher.Region instance = ...;
Stitcher.SpriteLoader<T> spriteLoader = ...;
instance.walk(spriteLoader);
Stitcher$SpriteLoader
- Full name:
net.minecraft.client.renderer.texture.Stitcher$SpriteLoader - Package:
net.minecraft.client.renderer.texture - Source:
clientOnly—net/minecraft/client/renderer/texture/Stitcher.java - Type:
interface - Modifiers:
public
net.minecraft.client.renderer.texture.Stitcher$SpriteLoader#load(T,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/Stitcher.java:234 - Modifiers: ``
- Return:
void
คืออะไร
โหลด load
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
T entryint iint j
ตัวอย่างใช้งาน
StitcherException
- Full name:
net.minecraft.client.renderer.texture.StitcherException - Package:
net.minecraft.client.renderer.texture - Source:
clientOnly—net/minecraft/client/renderer/texture/StitcherException.java - Type:
class - Modifiers:
public - Extends:
RuntimeException
net.minecraft.client.renderer.texture.StitcherException#getAllSprites()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/StitcherException.java:17 - Modifiers:
public - Return:
Collection<Stitcher.Entry>
คืออะไร
อ่านค่า All Sprites
ทำงานยังไง
คืนค่า: this.allSprites.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.StitcherException#StitcherException(Stitcher.Entry,Collection<Stitcher.Entry>)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/StitcherException.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ StitcherException ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
มีการจัดการ exception. แก้ state: allSprites. เรียกต่อ: format(), name(), width(), height().
Parameters
Stitcher.Entry entryCollection<Stitcher.Entry> collection
ตัวอย่างใช้งาน
Stitcher.Entry entry = ...;
Collection<Stitcher.Entry> collection = ...;
StitcherException instance = new StitcherException(entry, collection);
TextureAtlas
- Full name:
net.minecraft.client.renderer.texture.TextureAtlas - Package:
net.minecraft.client.renderer.texture - Source:
clientOnly—net/minecraft/client/renderer/texture/TextureAtlas.java - Type:
class - Modifiers:
public - Extends:
AbstractTexture - Implements:
Dumpable,Tickable
net.minecraft.client.renderer.texture.TextureAtlas#clearTextureData()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureAtlas.java:139 - Modifiers:
public - Return:
void
คืออะไร
ล้าง Texture Data
ทำงานยังไง
แก้ state: sprites, animatedTextures, texturesByName, missingSprite. เรียกต่อ: forEach(), of().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.TextureAtlas#cycleAnimationFrames()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureAtlas.java:117 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ cycleAnimationFrames ตาม implementation ของ TextureAtlas
ทำงานยังไง
มีการวนลูป. เรียกต่อ: bind(), tickAndUpload().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.TextureAtlas#dumpContents(ResourceLocation,Path)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureAtlas.java:87 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ dumpContents ตาม implementation ของ TextureAtlas
ทำงานยังไง
เรียกต่อ: toDebugFileName(), writeAsPNG(), getId(), dumpSpriteNames().
Parameters
ResourceLocation resourceLocationPath path
Throws
IOException
ตัวอย่างใช้งาน
TextureAtlas instance = ...;
ResourceLocation resourceLocation = ...;
Path path = ...;
instance.dumpContents(resourceLocation, path);
net.minecraft.client.renderer.texture.TextureAtlas#getSprite(ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureAtlas.java:130 - Modifiers:
public - Return:
TextureAtlasSprite
คืออะไร
อ่านค่า Sprite
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getOrDefault(). สร้างออบเจ็กต์: IllegalStateException. คืนค่า: textureAtlasSprite.
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
TextureAtlas instance = ...;
ResourceLocation resourceLocation = ...;
TextureAtlasSprite result = instance.getSprite(resourceLocation);
net.minecraft.client.renderer.texture.TextureAtlas#location()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureAtlas.java:148 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
ดำเนินการ location ตาม implementation ของ TextureAtlas
ทำงานยังไง
คืนค่า: this.location.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.TextureAtlas#maxSupportedTextureSize()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureAtlas.java:152 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ maxSupportedTextureSize ตาม implementation ของ TextureAtlas
ทำงานยังไง
คืนค่า: this.maxSupportedTextureSize.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.TextureAtlas#TextureAtlas(ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureAtlas.java:42 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TextureAtlas ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: location, maxSupportedTextureSize. เรียกต่อ: maxSupportedTextureSize().
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
TextureAtlas instance = new TextureAtlas(resourceLocation);
net.minecraft.client.renderer.texture.TextureAtlas#tick()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureAtlas.java:125 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
เรียกต่อ: cycleAnimationFrames().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.TextureAtlas#upload(SpriteLoader.Preparations)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureAtlas.java:47 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ upload ตาม implementation ของ TextureAtlas
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. แก้ state: width, height, mipLevel, texturesByName, missingSprite, sprites. เรียกต่อ: info(), width(), height(), mipLevel(), prepareImage(), getId(), clearTextureData(), setFilter(). สร้างออบเจ็กต์: IllegalStateException, ArrayList<>, ReportedException.
Parameters
SpriteLoader.Preparations preparations
ตัวอย่างใช้งาน
TextureAtlas instance = ...;
SpriteLoader.Preparations preparations = ...;
instance.upload(preparations);
TextureAtlasSprite
- Full name:
net.minecraft.client.renderer.texture.TextureAtlasSprite - Package:
net.minecraft.client.renderer.texture - Source:
clientOnly—net/minecraft/client/renderer/texture/TextureAtlasSprite.java - Type:
class - Modifiers:
public
net.minecraft.client.renderer.texture.TextureAtlasSprite#atlasLocation()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureAtlasSprite.java:96 - Modifiers:
public - Return:
ResourceLocation
คืออะไร
ดำเนินการ atlasLocation ตาม implementation ของ TextureAtlasSprite
ทำงานยังไง
คืนค่า: this.atlasLocation.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.TextureAtlasSprite#contents()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureAtlasSprite.java:48 - Modifiers:
public - Return:
SpriteContents
คืออะไร
ดำเนินการ contents ตาม implementation ของ TextureAtlasSprite
ทำงานยังไง
คืนค่า: this.contents.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.TextureAtlasSprite#createTicker()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureAtlasSprite.java:52 - Modifiers:
public - Return:
TextureAtlasSprite.Ticker
คืออะไร
สร้าง Ticker
ทำงานยังไง
เรียกต่อ: Ticker(), tickAndUpload(), close(). สร้างออบเจ็กต์: TextureAtlasSprite.Ticker.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.TextureAtlasSprite#getU(float)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureAtlasSprite.java:68 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า U
ทำงานยังไง
คืนค่า: this.u0 + g * f.
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.TextureAtlasSprite#getU0()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureAtlasSprite.java:40 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า U0
ทำงานยังไง
คืนค่า: this.u0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.TextureAtlasSprite#getU1()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureAtlasSprite.java:44 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า U1
ทำงานยังไง
คืนค่า: this.u1.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.TextureAtlasSprite#getUOffset(float)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureAtlasSprite.java:73 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า UOffset
ทำงานยังไง
คืนค่า: (f - this.u0) / g.
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.TextureAtlasSprite#getV(float)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureAtlasSprite.java:86 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า V
ทำงานยังไง
คืนค่า: this.v0 + g * f.
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.TextureAtlasSprite#getV0()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureAtlasSprite.java:78 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า V0
ทำงานยังไง
คืนค่า: this.v0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.TextureAtlasSprite#getV1()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureAtlasSprite.java:82 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า V1
ทำงานยังไง
คืนค่า: this.v1.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.TextureAtlasSprite#getVOffset(float)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureAtlasSprite.java:91 - Modifiers:
public - Return:
float
คืออะไร
อ่านค่า VOffset
ทำงานยังไง
คืนค่า: (f - this.v0) / g.
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.TextureAtlasSprite#getX()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureAtlasSprite.java:32 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า X
ทำงานยังไง
คืนค่า: this.x.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.TextureAtlasSprite#getY()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureAtlasSprite.java:36 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Y
ทำงานยังไง
คืนค่า: this.y.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.TextureAtlasSprite#TextureAtlasSprite(ResourceLocation,SpriteContents,int,int,int,int)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureAtlasSprite.java:21 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TextureAtlasSprite ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: atlasLocation, contents, x, y, u0, u1. เรียกต่อ: width(), height().
Parameters
ResourceLocation resourceLocationSpriteContents spriteContentsint iint jint kint l
ตัวอย่างใช้งาน
ResourceLocation resourceLocation = ...;
SpriteContents spriteContents = ...;
TextureAtlasSprite instance = new TextureAtlasSprite(resourceLocation, spriteContents, 0, 0, 0, 0);
net.minecraft.client.renderer.texture.TextureAtlasSprite#toString()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureAtlasSprite.java:100 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ TextureAtlasSprite
ทำงานยังไง
คืนค่า: "TextureAtlasSprite{contents='" + this.contents + "', u0=" + this.u0 + ", u1=" + this.u1 + ", v0=" + this.v0 + ", v1=" + this.v1 + "}".
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.TextureAtlasSprite#uploadFirstFrame()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureAtlasSprite.java:105 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ uploadFirstFrame ตาม implementation ของ TextureAtlasSprite
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.TextureAtlasSprite#uvShrinkRatio()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureAtlasSprite.java:115 - Modifiers:
public - Return:
float
คืออะไร
ดำเนินการ uvShrinkRatio ตาม implementation ของ TextureAtlasSprite
ทำงานยังไง
เรียกต่อ: atlasSize(). คืนค่า: 4.0F / this.atlasSize().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.TextureAtlasSprite#wrap(VertexConsumer)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureAtlasSprite.java:119 - Modifiers:
public - Return:
VertexConsumer
คืออะไร
ดำเนินการ wrap ตาม implementation ของ TextureAtlasSprite
ทำงานยังไง
สร้างออบเจ็กต์: SpriteCoordinateExpander. คืนค่า: new SpriteCoordinateExpander(vertexConsumer, this).
Parameters
VertexConsumer vertexConsumer
ตัวอย่างใช้งาน
TextureAtlasSprite instance = ...;
VertexConsumer vertexConsumer = ...;
VertexConsumer result = instance.wrap(vertexConsumer);
TextureAtlasSprite$Ticker
- Full name:
net.minecraft.client.renderer.texture.TextureAtlasSprite$Ticker - Package:
net.minecraft.client.renderer.texture - Source:
clientOnly—net/minecraft/client/renderer/texture/TextureAtlasSprite.java - Type:
interface - Modifiers:
public - Implements:
AutoCloseable
net.minecraft.client.renderer.texture.TextureAtlasSprite$Ticker#close()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureAtlasSprite.java:127 - Modifiers: ``
- Return:
void
คืออะไร
ปิด close
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.TextureAtlasSprite$Ticker#tickAndUpload()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureAtlasSprite.java:125 - Modifiers: ``
- Return:
void
คืออะไร
ประมวลผล tick And Upload
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
TextureContents
- Full name:
net.minecraft.client.renderer.texture.TextureContents - Package:
net.minecraft.client.renderer.texture - Source:
clientOnly—net/minecraft/client/renderer/texture/TextureContents.java - Type:
record - Modifiers:
public - Implements:
Closeable
net.minecraft.client.renderer.texture.TextureContents#blur()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureContents.java:33 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ blur ตาม implementation ของ TextureContents
ทำงานยังไง
คืนค่า: this.metadata != null ? this.metadata.blur() : false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.TextureContents#clamp()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureContents.java:37 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ clamp ตาม implementation ของ TextureContents
ทำงานยังไง
คืนค่า: this.metadata != null ? this.metadata.clamp() : false.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.TextureContents#close()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureContents.java:41 - Modifiers:
public - Return:
void
คืออะไร
ปิด close
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.TextureContents#createMissing()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureContents.java:29 - Modifiers:
public static - Return:
TextureContents
คืออะไร
สร้าง Missing
ทำงานยังไง
เรียกต่อ: generateMissingImage(). สร้างออบเจ็กต์: TextureContents. คืนค่า: new TextureContents(MissingTextureAtlasSprite.generateMissingImage(), null).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.TextureContents#load(ResourceManager,ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureContents.java:17 - Modifiers:
public static - Return:
TextureContents
คืออะไร
โหลด load
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: getResourceOrThrow(), open(), read(), metadata(), getSection(), orElse(). สร้างออบเจ็กต์: TextureContents. คืนค่า: new TextureContents(nativeImage, textureMetadataSection).
Parameters
ResourceManager resourceManagerResourceLocation resourceLocation
Throws
IOException
ตัวอย่างใช้งาน
ResourceManager resourceManager = ...;
ResourceLocation resourceLocation = ...;
TextureContents result = TextureContents.load(resourceManager, resourceLocation);
TextureManager
- Full name:
net.minecraft.client.renderer.texture.TextureManager - Package:
net.minecraft.client.renderer.texture - Source:
clientOnly—net/minecraft/client/renderer/texture/TextureManager.java - Type:
class - Modifiers:
public - Implements:
PreparableReloadListener,Tickable,AutoCloseable
net.minecraft.client.renderer.texture.TextureManager#close()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureManager.java:122 - Modifiers:
public - Return:
void
คืออะไร
ปิด close
ทำงานยังไง
เรียกต่อ: forEach(), clear().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.TextureManager#dumpAllSheets(Path)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureManager.java:147 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ dumpAllSheets ตาม implementation ของ TextureManager
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isOnRenderThread(), recordRenderCall(), _dumpAllSheets().
Parameters
Path path
ตัวอย่างใช้งาน
net.minecraft.client.renderer.texture.TextureManager#getTexture(ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureManager.java:97 - Modifiers:
public - Return:
AbstractTexture
คืออะไร
อ่านค่า Texture
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), registerAndLoad(). สร้างออบเจ็กต์: SimpleTexture. มีจุด return อย่างน้อย 2 จุด.
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
TextureManager instance = ...;
ResourceLocation resourceLocation = ...;
AbstractTexture result = instance.getTexture(resourceLocation);
net.minecraft.client.renderer.texture.TextureManager#register(ResourceLocation,AbstractTexture)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureManager.java:72 - Modifiers:
public - Return:
void
คืออะไร
ลงทะเบียน register
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: put(), safeClose(), add().
Parameters
ResourceLocation resourceLocationAbstractTexture abstractTexture
ตัวอย่างใช้งาน
TextureManager instance = ...;
ResourceLocation resourceLocation = ...;
AbstractTexture abstractTexture = ...;
instance.register(resourceLocation, abstractTexture);
net.minecraft.client.renderer.texture.TextureManager#registerAndLoad(ResourceLocation,ReloadableTexture)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureManager.java:45 - Modifiers:
public - Return:
void
คืออะไร
ลงทะเบียน And Load
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: apply(), loadContentsSafe(), forThrowable(), addCategory(), setDetail(), resourceId(), register(). สร้างออบเจ็กต์: ReportedException.
Parameters
ResourceLocation resourceLocationReloadableTexture reloadableTexture
ตัวอย่างใช้งาน
TextureManager instance = ...;
ResourceLocation resourceLocation = ...;
ReloadableTexture reloadableTexture = ...;
instance.registerAndLoad(resourceLocation, reloadableTexture);
net.minecraft.client.renderer.texture.TextureManager#registerForNextReload(ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureManager.java:68 - Modifiers:
public - Return:
void
คืออะไร
ลงทะเบียน For Next Reload
ทำงานยังไง
เรียกต่อ: register(). สร้างออบเจ็กต์: SimpleTexture.
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
TextureManager instance = ...;
ResourceLocation resourceLocation = ...;
instance.registerForNextReload(resourceLocation);
net.minecraft.client.renderer.texture.TextureManager#release(ResourceLocation)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureManager.java:115 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ release ตาม implementation ของ TextureManager
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: remove(), safeClose().
Parameters
ResourceLocation resourceLocation
ตัวอย่างใช้งาน
TextureManager instance = ...;
ResourceLocation resourceLocation = ...;
instance.release(resourceLocation);
net.minecraft.client.renderer.texture.TextureManager#reload(PreparationBarrier,ResourceManager,Executor,Executor)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureManager.java:129 - Modifiers:
public - Return:
CompletableFuture<Void>
คืออะไร
ดำเนินการ reload ตาม implementation ของ TextureManager
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: forEach(), add(), scheduleLoad(), allOf(), stream(), map(), toArray(), thenCompose(). สร้างออบเจ็กต์: ArrayList<>.
Parameters
PreparationBarrier preparationBarrierResourceManager resourceManagerExecutor executorExecutor executor2
ตัวอย่างใช้งาน
TextureManager instance = ...;
PreparationBarrier preparationBarrier = ...;
ResourceManager resourceManager = ...;
Executor executor = ...;
Executor executor2 = ...;
CompletableFuture<Void> result = instance.reload(preparationBarrier, resourceManager, executor, executor2);
net.minecraft.client.renderer.texture.TextureManager#TextureManager(ResourceManager)
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureManager.java:39 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ TextureManager ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: resourceManager. เรียกต่อ: generateMissingImage(), register(), getLocation(). สร้างออบเจ็กต์: DynamicTexture.
Parameters
ResourceManager resourceManager
ตัวอย่างใช้งาน
ResourceManager resourceManager = ...;
TextureManager instance = new TextureManager(resourceManager);
net.minecraft.client.renderer.texture.TextureManager#tick()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/TextureManager.java:108 - Modifiers:
public - Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
มีการวนลูป.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Tickable
- Full name:
net.minecraft.client.renderer.texture.Tickable - Package:
net.minecraft.client.renderer.texture - Source:
clientOnly—net/minecraft/client/renderer/texture/Tickable.java - Type:
interface - Modifiers:
public
net.minecraft.client.renderer.texture.Tickable#tick()
- Origin:
clientOnly - Source:
net/minecraft/client/renderer/texture/Tickable.java:8 - Modifiers: ``
- Return:
void
คืออะไร
ประมวลผล tick tick
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี