类 SpriteContents
java.lang.Object
net.minecraft.client.renderer.texture.SpriteContents
- 所有已实现的接口:
AutoCloseable
,Stitcher.Entry
-
嵌套类概要
嵌套类修饰符和类型类说明(专用程序包) class
(专用程序包) static class
(专用程序包) final class
(专用程序包) class
-
字段概要
字段修饰符和类型字段说明(专用程序包) final SpriteContents.AnimatedTexture
final ForgeTextureMetadata
(专用程序包) final int
private static final org.slf4j.Logger
private final ResourceLocation
private final NativeImage
(专用程序包) final int
-
构造器概要
构造器构造器说明SpriteContents
(ResourceLocation pName, FrameSize pFrameSize, NativeImage pOriginalImage, AnimationMetadataSection pMetadata) 已过时。Forge: Use the overload with Forge metadata parameter to properly forward custom loaders.SpriteContents
(ResourceLocation pName, FrameSize pFrameSize, NativeImage pOriginalImage, AnimationMetadataSection pMetadata, ForgeTextureMetadata forgeMeta) -
方法概要
修饰符和类型方法说明void
close()
private SpriteContents.AnimatedTexture
createAnimatedTexture
(FrameSize pFrameSize, int pWidth, int pHeight, AnimationMetadataSection pMetadata) (专用程序包) int
int
height()
void
increaseMipLevel
(int pMipLevel) boolean
isTransparent
(int pFrame, int pX, int pY) name()
toString()
(专用程序包) void
upload
(int pX, int pY, int pFrameX, int pFrameY, NativeImage[] pAtlasData) void
uploadFirstFrame
(int pX, int pY) int
width()
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
name
-
width
final int width -
height
final int height -
originalImage
-
byMipLevel
-
animatedTexture
-
forgeMeta
-
-
构造器详细资料
-
SpriteContents
@Deprecated public SpriteContents(ResourceLocation pName, FrameSize pFrameSize, NativeImage pOriginalImage, AnimationMetadataSection pMetadata) 已过时。Forge: Use the overload with Forge metadata parameter to properly forward custom loaders. -
SpriteContents
public SpriteContents(ResourceLocation pName, FrameSize pFrameSize, NativeImage pOriginalImage, AnimationMetadataSection pMetadata, @Nullable ForgeTextureMetadata forgeMeta)
-
-
方法详细资料
-
getOriginalImage
-
increaseMipLevel
public void increaseMipLevel(int pMipLevel) -
getFrameCount
int getFrameCount() -
createAnimatedTexture
@Nullable private SpriteContents.AnimatedTexture createAnimatedTexture(FrameSize pFrameSize, int pWidth, int pHeight, AnimationMetadataSection pMetadata) -
upload
-
width
public int width()- 指定者:
width
在接口中Stitcher.Entry
-
height
public int height()- 指定者:
height
在接口中Stitcher.Entry
-
name
- 指定者:
name
在接口中Stitcher.Entry
-
getUniqueFrames
-
createTicker
-
close
public void close()- 指定者:
close
在接口中AutoCloseable
-
toString
-
isTransparent
public boolean isTransparent(int pFrame, int pX, int pY) -
uploadFirstFrame
public void uploadFirstFrame(int pX, int pY)
-