mirror of
https://github.com/TeamMidnightDust/PictureSign.git
synced 2025-12-13 04:45:10 +01:00
Some further improvements
This commit is contained in:
@@ -23,7 +23,7 @@ public class PictureSignConfig extends MidnightConfig {
|
|||||||
@Entry(min = 1, max = 10, isSlider = true, category = advanced) public static int maxThreads = 4;
|
@Entry(min = 1, max = 10, isSlider = true, category = advanced) public static int maxThreads = 4;
|
||||||
@Entry(min = 0, max = 2048, isSlider = true, category = general) public static int signRenderDistance = 64;
|
@Entry(min = 0, max = 2048, isSlider = true, category = general) public static int signRenderDistance = 64;
|
||||||
@Entry(category = advanced) public static boolean safeMode = true;
|
@Entry(category = advanced) public static boolean safeMode = true;
|
||||||
@Entry(category = advanced) public static List<String> safeProviders = Lists.newArrayList("https://i.imgur.com/", "https://i.ibb.co/", "https://pictshare.net/", "https://iili.io/", "https://media1.tenor.com/");
|
@Entry(category = advanced) public static List<String> safeProviders = Lists.newArrayList("https://i.imgur.com/", "https://i.ibb.co/", "https://pictshare.net/", "https://iili.io/");
|
||||||
@Entry(category = advanced) public static List<String> safeGifProviders = Lists.newArrayList("https://i.imgur.com/", "https://media1.tenor.com/");
|
@Entry(category = advanced) public static List<String> safeGifProviders = Lists.newArrayList("https://i.imgur.com/", "https://media1.tenor.com/");
|
||||||
@Entry(category = advanced) public static List<String> safeMultimediaProviders = Lists.newArrayList("https://youtube.com/", "https://www.youtube.com/", "https://youtu.be/","https://vimeo.com/");
|
@Entry(category = advanced) public static List<String> safeMultimediaProviders = Lists.newArrayList("https://youtube.com/", "https://www.youtube.com/", "https://youtu.be/","https://vimeo.com/");
|
||||||
@Entry(category = advanced) public static List<String> safeJsonProviders = Lists.newArrayList("https://github.com/", "https://gist.github.com/", "https://www.jsonkeeper.com/", "https://api.npoint.io/", "https://api.jsonsilo.com/");
|
@Entry(category = advanced) public static List<String> safeJsonProviders = Lists.newArrayList("https://github.com/", "https://gist.github.com/", "https://www.jsonkeeper.com/", "https://api.npoint.io/", "https://api.jsonsilo.com/");
|
||||||
|
|||||||
@@ -33,6 +33,10 @@ public abstract class MediaHandler {
|
|||||||
// Add new implementations here via Mixin
|
// Add new implementations here via Mixin
|
||||||
else return null;
|
else return null;
|
||||||
}
|
}
|
||||||
|
public static boolean hasValidImplementation() { // Mixin here to add new Multimedia implementations
|
||||||
|
if (hasWaterMedia) return true;
|
||||||
|
else return false;
|
||||||
|
}
|
||||||
public void setVolumeBasedOnDistance() {
|
public void setVolumeBasedOnDistance() {
|
||||||
if (!isWorking() || client.player == null) return;
|
if (!isWorking() || client.player == null) return;
|
||||||
|
|
||||||
@@ -92,8 +96,4 @@ public abstract class MediaHandler {
|
|||||||
return PictureSignConfig.missingImageMode.equals(PictureSignConfig.MissingImageMode.BLACK) ?
|
return PictureSignConfig.missingImageMode.equals(PictureSignConfig.MissingImageMode.BLACK) ?
|
||||||
(id("textures/black.png")) : (TextureManager.MISSING_IDENTIFIER);
|
(id("textures/black.png")) : (TextureManager.MISSING_IDENTIFIER);
|
||||||
}
|
}
|
||||||
public static boolean hasValidImplementation() { // Mixin here to add new Multimedia implementations
|
|
||||||
if (hasWaterMedia) return true;
|
|
||||||
else return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user