Class ServerTexture
java.lang.Object
net.minecraft.client.renderer.texture.AbstractTexture
net.minecraft.client.renderer.texture.SimpleTexture
net.frozenblock.lib.image_transfer.client.ServerTexture
- All Implemented Interfaces:
AutoCloseable,net.minecraft.client.renderer.texture.Tickable
@Environment(CLIENT)
public class ServerTexture
extends net.minecraft.client.renderer.texture.SimpleTexture
implements net.minecraft.client.renderer.texture.Tickable
A texture that will use a .png file sent from the server.
Sends a file transfer request to the server if the needed texture file is not present on the client, unless the file transfer config is disabled.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.renderer.texture.SimpleTexture
net.minecraft.client.renderer.texture.SimpleTexture.TextureImage -
Field Summary
FieldsFields inherited from class net.minecraft.client.renderer.texture.SimpleTexture
locationFields inherited from class net.minecraft.client.renderer.texture.AbstractTexture
blur, id, mipmap, NOT_ASSIGNED -
Constructor Summary
ConstructorsConstructorDescriptionServerTexture(String destPath, String fileName, net.minecraft.resources.ResourceLocation fallback, @Nullable Runnable callback) -
Method Summary
Methods inherited from class net.minecraft.client.renderer.texture.SimpleTexture
getTextureImageMethods inherited from class net.minecraft.client.renderer.texture.AbstractTexture
bind, close, getId, releaseId, reset, setFilter
-
Field Details
-
WAITING_TEXTURES
-
LOCAL_TEXTURE_SOURCE
- See Also:
-
-
Constructor Details
-
ServerTexture
-
-
Method Details
-
runFutureForTexture
public void runFutureForTexture() -
load
- Overrides:
loadin classnet.minecraft.client.renderer.texture.SimpleTexture- Throws:
IOException
-
updateReferenceTime
public void updateReferenceTime() -
tick
public void tick()- Specified by:
tickin interfacenet.minecraft.client.renderer.texture.Tickable
-