Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
21da7aae0e | ||
|
|
eacf6f7dd7 | ||
|
|
cd90218a37 | ||
|
|
93b3283d8b | ||
|
|
51cc5d1cd1 | ||
|
|
614b2d4e3e | ||
|
|
aebd3ebf8c | ||
|
|
ccb66ee3b1 | ||
|
|
d37209b9e1 | ||
|
|
972ccacc69 | ||
|
|
e58530f587 | ||
|
|
c75c509fda | ||
|
|
b2c051b597 | ||
|
|
5b34a69e2b | ||
|
|
582ed32314 | ||
|
|
f1324c86be | ||
|
|
77d2debe5d | ||
|
|
cca754773a | ||
|
|
ebc1762cb6 | ||
|
|
6820516d89 | ||
|
|
3529de5863 |
No files matched your search
@@ -0,0 +1,17 @@
|
|||||||
|
name: Optimize images
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches: [ master, main, release/** ]
|
||||||
|
paths:
|
||||||
|
- "**/*.png"
|
||||||
|
|
||||||
|
push:
|
||||||
|
branches: [ master, main, release/** ]
|
||||||
|
paths:
|
||||||
|
- "**/*.png"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
optimize-images:
|
||||||
|
uses: GTNewHorizons/GTNH-Actions-Workflows/.github/workflows/optimize-images.yml@master
|
||||||
|
secrets: inherit
|
||||||
@@ -30,3 +30,4 @@ src/main/resources/mixins.*.json
|
|||||||
*.bat
|
*.bat
|
||||||
*.DS_Store
|
*.DS_Store
|
||||||
!gradlew.bat
|
!gradlew.bat
|
||||||
|
layout.json
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
jar {
|
|
||||||
manifest {
|
|
||||||
attributes 'FMLCorePlugin': 'mrtjp.relocation.asm.RelocationPlugin'
|
|
||||||
attributes 'FMLCorePluginContainsFMLMod': true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
dependencies {
|
dependencies {
|
||||||
api 'com.github.GTNewHorizons:MrTJPCore:1.1.5:dev'
|
api('com.github.GTNewHorizons:CodeChickenCore:1.4.17:dev')
|
||||||
|
api 'com.github.GTNewHorizons:MrTJPCore:1.3.7:dev'
|
||||||
}
|
}
|
||||||
@@ -1,65 +1,135 @@
|
|||||||
|
# ExampleMod tag to use as Blowdryer (Spotless, etc.) settings version, leave empty to disable.
|
||||||
|
# LOCAL to test local config updates.
|
||||||
|
gtnh.settings.blowdryerTag = 0.2.0
|
||||||
|
|
||||||
|
# Human-readable mod name, available for mcmod.info population.
|
||||||
modName = ForgeRelocation
|
modName = ForgeRelocation
|
||||||
|
|
||||||
# This is a case-sensitive string to identify your mod. Convention is to use lower case.
|
# Case-sensitive identifier string, available for mcmod.info population and used for automatic mixin JSON generation.
|
||||||
|
# Conventionally lowercase.
|
||||||
modId = ForgeRelocation
|
modId = ForgeRelocation
|
||||||
|
|
||||||
|
# Root package of the mod, used to find various classes in other properties,
|
||||||
|
# mcmod.info substitution, enabling assertions in run tasks, etc.
|
||||||
modGroup = mrtjp.relocation
|
modGroup = mrtjp.relocation
|
||||||
|
|
||||||
# WHY is there no version field?
|
# Whether to use modGroup as the maven publishing group.
|
||||||
# The build script relies on git to provide a version via tags. It is super easy and will enable you to always know the
|
# When false, com.github.GTNewHorizons is used.
|
||||||
# code base or your binary. Check out this tutorial: https://blog.mattclemente.com/2017/10/13/versioning-with-git-tags/
|
useModGroupForPublishing = false
|
||||||
|
|
||||||
# Will update your build.gradle automatically whenever an update is available
|
# Updates your build.gradle and settings.gradle automatically whenever an update is available.
|
||||||
autoUpdateBuildScript = false
|
autoUpdateBuildScript = false
|
||||||
|
|
||||||
|
# Version of Minecraft to target
|
||||||
minecraftVersion = 1.7.10
|
minecraftVersion = 1.7.10
|
||||||
|
|
||||||
|
# Version of Minecraft Forge to target
|
||||||
forgeVersion = 10.13.4.1614
|
forgeVersion = 10.13.4.1614
|
||||||
|
|
||||||
# Specify a MCP channel and mappings version for dependency deobfuscation and the deobfParams task.
|
# Specify an MCP channel for dependency deobfuscation and the deobfParams task.
|
||||||
channel = stable
|
channel = stable
|
||||||
|
|
||||||
|
# Specify an MCP mappings version for dependency deobfuscation and the deobfParams task.
|
||||||
mappingsVersion = 12
|
mappingsVersion = 12
|
||||||
|
|
||||||
# Define other MCP mappings for dependency deobfuscation
|
# Defines other MCP mappings for dependency deobfuscation.
|
||||||
remoteMappings = https://raw.githubusercontent.com/MinecraftForge/FML/1.7.10/conf/
|
remoteMappings = https\://raw.githubusercontent.com/MinecraftForge/FML/1.7.10/conf/
|
||||||
|
|
||||||
# Select a username for testing your mod with breakpoints. You may leave this empty for a random username each time you
|
# Select a default username for testing your mod. You can always override this per-run by running
|
||||||
# restart Minecraft in development. Choose this dependent on your mod:
|
# `./gradlew runClient --username=AnotherPlayer`, or configuring this command in your IDE.
|
||||||
# Do you need consistent player progressing (for example Thaumcraft)? -> Select a name
|
|
||||||
# Do you need to test how your custom blocks interacts with a player that is not the owner? -> leave name empty
|
|
||||||
developmentEnvironmentUserName = Developer
|
developmentEnvironmentUserName = Developer
|
||||||
|
|
||||||
# Define a source file of your project with:
|
# Enables modern Java syntax support. Valid values:
|
||||||
|
# - false: No modern syntax, Java 8 only
|
||||||
|
# - jabel: Jabel syntax-only support, compiles to J8 bytecode
|
||||||
|
# - jvmDowngrader: Full modern Java via JVM Downgrader (syntax + stdlib APIs)
|
||||||
|
# - modern: Native modern Java bytecode, no downgrading
|
||||||
|
enableModernJavaSyntax = false
|
||||||
|
|
||||||
|
# If set, ignores the above setting and compiles with the given toolchain. This may cause unexpected issues,
|
||||||
|
# and should *not* be used in most situations. -1 disables this.
|
||||||
|
# forceToolchainVersion = -1
|
||||||
|
|
||||||
|
# Target JVM version for JVM Downgrader bytecode downgrading.
|
||||||
|
# Only used when enableModernJavaSyntax = jvmDowngrader
|
||||||
|
# downgradeTargetVersion = 8
|
||||||
|
|
||||||
|
# Comma-separated list of Java versions for multi-release jar support (JVM Downgrader only).
|
||||||
|
# Classes will be available in META-INF/versions/N/ for each version N in this list.
|
||||||
|
# Default: "21,25" (J25+ gets native classes, J21-24 gets partial downgrade, J8-20 gets full downgrade).
|
||||||
|
# jvmDowngraderMultiReleaseVersions = 21,25
|
||||||
|
|
||||||
|
# Specifies how JVM Downgrader API stubs are provided. Options:
|
||||||
|
# - shade: Shade minimized stubs into the jar
|
||||||
|
# - gtnhlib: GTNHLib provides stubs at runtime (adds version constraint)
|
||||||
|
# - external: Another dependency provides stubs (no constraint, no warning)
|
||||||
|
# - (empty): Warning reminding you to configure stubs
|
||||||
|
# Note: 'shade' option requires you to verify license compliance, see: https://github.com/unimined/JvmDowngrader/blob/main/LICENSE.md
|
||||||
|
# jvmDowngraderStubsProvider =
|
||||||
|
|
||||||
|
# Enables injecting missing generics into the decompiled source code for a better coding experience.
|
||||||
|
# Turns most publicly visible List, Map, etc. into proper List<E>, Map<K, V> types.
|
||||||
|
enableGenericInjection = false
|
||||||
|
|
||||||
|
# Generate a class with a String field for the mod version named as defined below.
|
||||||
|
# If generateGradleTokenClass is empty or not missing, no such class will be generated.
|
||||||
|
# If gradleTokenVersion is empty or missing, the field will not be present in the class.
|
||||||
|
generateGradleTokenClass = mrtjp.relocation.Tags
|
||||||
|
|
||||||
|
# Name of the token containing the project's current version to generate/replace.
|
||||||
|
gradleTokenVersion = VERSION
|
||||||
|
|
||||||
|
# [DEPRECATED] Mod ID replacement token.
|
||||||
|
gradleTokenModId =
|
||||||
|
|
||||||
|
# [DEPRECATED] Mod name replacement token.
|
||||||
|
gradleTokenModName =
|
||||||
|
|
||||||
|
# [DEPRECATED] Mod Group replacement token.
|
||||||
|
gradleTokenGroupName =
|
||||||
|
|
||||||
|
# [DEPRECATED]
|
||||||
|
# Multiple source files can be defined here by providing a comma-separated list: Class1.java,Class2.java,Class3.java
|
||||||
# public static final String VERSION = "GRADLETOKEN_VERSION";
|
# public static final String VERSION = "GRADLETOKEN_VERSION";
|
||||||
# The string's content will be replaced with your mod's version when compiled. You should use this to specify your mod's
|
# The string's content will be replaced with your mod's version when compiled. You should use this to specify your mod's
|
||||||
# version in @Mod([...], version = VERSION, [...])
|
# version in @Mod([...], version = VERSION, [...]).
|
||||||
# Leave these properties empty to skip individual token replacements
|
# Leave these properties empty to skip individual token replacements.
|
||||||
replaceGradleTokenInFile = mod.scala,package-info.java
|
replaceGradleTokenInFile =
|
||||||
gradleTokenModId =
|
|
||||||
gradleTokenModName =
|
|
||||||
gradleTokenVersion = GRADLETOKEN_VERSION
|
|
||||||
gradleTokenGroupName =
|
|
||||||
|
|
||||||
# In case your mod provides an API for other mods to implement you may declare its package here. Otherwise, you can
|
# In case your mod provides an API for other mods to implement you may declare its package here. Otherwise, you can
|
||||||
# leave this property empty.
|
# leave this property empty.
|
||||||
# Example value: apiPackage = api + modGroup = com.myname.mymodid -> com.myname.mymodid.api
|
# Example value: (apiPackage = api) + (modGroup = com.myname.mymodid) -> com.myname.mymodid.api
|
||||||
apiPackage =
|
apiPackage =
|
||||||
|
|
||||||
# Specify the configuration file for Forge's access transformers here. It must be placed into /src/main/resources/META-INF/
|
# Specify the configuration file for Forge's access transformers here. It must be placed into /src/main/resources/META-INF/
|
||||||
# Example value: mymodid_at.cfg
|
# There can be multiple files in a space-separated list.
|
||||||
|
# Example value: mymodid_at.cfg nei_at.cfg
|
||||||
accessTransformersFile =
|
accessTransformersFile =
|
||||||
|
|
||||||
# Provides setup for Mixins if enabled. If you don't know what mixins are: Keep it disabled!
|
# Provides setup for Mixins if enabled. If you don't know what mixins are: Keep it disabled!
|
||||||
usesMixins = false
|
usesMixins = false
|
||||||
# Adds some debug arguments like verbose output and export
|
|
||||||
|
# Set to a non-empty string to configure mixins in a separate source set under src/VALUE, instead of src/main.
|
||||||
|
# This can speed up compile times thanks to not running the mixin annotation processor on all input sources.
|
||||||
|
# Mixin classes will have access to "main" classes, but not the other way around.
|
||||||
|
separateMixinSourceSet =
|
||||||
|
|
||||||
|
# Adds some debug arguments like verbose output and class export.
|
||||||
usesMixinDebug = false
|
usesMixinDebug = false
|
||||||
|
|
||||||
# Specify the location of your implementation of IMixinConfigPlugin. Leave it empty otherwise.
|
# Specify the location of your implementation of IMixinConfigPlugin. Leave it empty otherwise.
|
||||||
mixinPlugin =
|
mixinPlugin =
|
||||||
# Specify the package that contains all of your Mixins. You may only place Mixins in this package or the build will fail!
|
|
||||||
|
# Specify the package that contains all of your Mixins. The package must exist or
|
||||||
|
# the build will fail. If you have a package property defined in your mixins.<modid>.json,
|
||||||
|
# it must match with this or the build will fail.
|
||||||
mixinsPackage =
|
mixinsPackage =
|
||||||
|
|
||||||
# Specify the core mod entry class if you use a core mod. This class must implement IFMLLoadingPlugin!
|
# Specify the core mod entry class if you use a core mod. This class must implement IFMLLoadingPlugin!
|
||||||
# This parameter is for legacy compatibility only
|
# This parameter is for legacy compatibility only
|
||||||
# Example value: coreModClass = asm.FMLPlugin + modGroup = com.myname.mymodid -> com.myname.mymodid.asm.FMLPlugin
|
# Example value: (coreModClass = asm.FMLPlugin) + (modGroup = com.myname.mymodid) -> com.myname.mymodid.asm.FMLPlugin
|
||||||
coreModClass =
|
coreModClass = asm.RelocationPlugin
|
||||||
|
|
||||||
# If your project is only a consolidation of mixins or a core mod and does NOT contain a 'normal' mod ( = some class
|
# If your project is only a consolidation of mixins or a core mod and does NOT contain a 'normal' mod ( = some class
|
||||||
# that is annotated with @Mod) you want this to be true. When in doubt: leave it on false!
|
# that is annotated with @Mod) you want this to be true. When in doubt: leave it on false!
|
||||||
containsMixinsAndOrCoreModOnly = false
|
containsMixinsAndOrCoreModOnly = false
|
||||||
@@ -67,15 +137,38 @@ containsMixinsAndOrCoreModOnly = false
|
|||||||
# Enables Mixins even if this mod doesn't use them, useful if one of the dependencies uses mixins.
|
# Enables Mixins even if this mod doesn't use them, useful if one of the dependencies uses mixins.
|
||||||
forceEnableMixins = false
|
forceEnableMixins = false
|
||||||
|
|
||||||
# If enabled, you may use 'shadowCompile' for dependencies. They will be integrated in your jar. It is your
|
# If enabled, you may use 'shadowCompile' for dependencies. They will be integrated into your jar. It is your
|
||||||
# responsibility check the licence and request permission for distribution, if required.
|
# responsibility to check the license and request permission for distribution if required.
|
||||||
usesShadowedDependencies = false
|
usesShadowedDependencies = false
|
||||||
|
|
||||||
|
# If disabled, won't remove unused classes from shadowed dependencies. Some libraries use reflection to access
|
||||||
|
# their own classes, making the minimization unreliable.
|
||||||
|
minimizeShadowedDependencies = true
|
||||||
|
|
||||||
# Publishing to modrinth requires you to set the MODRINTH_TOKEN environment variable to your current modrinth API token.
|
# If disabled, won't rename the shadowed classes.
|
||||||
|
relocateShadowedDependencies = true
|
||||||
|
|
||||||
|
# Adds CurseMaven, Modrinth, and some more well-known 1.7.10 repositories.
|
||||||
|
includeWellKnownRepositories = true
|
||||||
|
|
||||||
|
# A list of repositories to exclude from the includeWellKnownRepositories setting. Should be a space separated
|
||||||
|
# list of strings, with the acceptable keys being(case does not matter):
|
||||||
|
# cursemaven
|
||||||
|
# modrinth
|
||||||
|
excludeWellKnownRepositories =
|
||||||
|
|
||||||
|
# Change these to your Maven coordinates if you want to publish to a custom Maven repository instead of the default GTNH Maven.
|
||||||
|
# Authenticate with the MAVEN_USER and MAVEN_PASSWORD environment variables.
|
||||||
|
# If you need a more complex setup disable maven publishing here and add a publishing repository to addon.gradle.
|
||||||
|
usesMavenPublishing = true
|
||||||
|
|
||||||
|
# Maven repository to publish the mod to.
|
||||||
|
# mavenPublishUrl = https\://nexus.gtnewhorizons.com/repository/releases/
|
||||||
|
|
||||||
|
# Publishing to Modrinth requires you to set the MODRINTH_TOKEN environment variable to your current Modrinth API token.
|
||||||
|
#
|
||||||
# The project's ID on Modrinth. Can be either the slug or the ID.
|
# The project's ID on Modrinth. Can be either the slug or the ID.
|
||||||
# Leave this empty if you don't want to publish on Modrinth.
|
# Leave this empty if you don't want to publish to Modrinth.
|
||||||
modrinthProjectId =
|
modrinthProjectId =
|
||||||
|
|
||||||
# The project's relations on Modrinth. You can use this to refer to other projects on Modrinth.
|
# The project's relations on Modrinth. You can use this to refer to other projects on Modrinth.
|
||||||
@@ -84,12 +177,11 @@ modrinthProjectId =
|
|||||||
# type can be one of [project, version],
|
# type can be one of [project, version],
|
||||||
# and the name is the Modrinth project or version slug/id of the other mod.
|
# and the name is the Modrinth project or version slug/id of the other mod.
|
||||||
# Example: required-project:fplib;optional-project:gasstation;incompatible-project:gregtech
|
# Example: required-project:fplib;optional-project:gasstation;incompatible-project:gregtech
|
||||||
# Note: GTNH Mixins is automatically set as a required dependency if usesMixins = true
|
# Note: UniMixins is automatically set as a required dependency if usesMixins = true.
|
||||||
modrinthRelations =
|
modrinthRelations =
|
||||||
|
|
||||||
|
|
||||||
# Publishing to CurseForge requires you to set the CURSEFORGE_TOKEN environment variable to one of your CurseForge API tokens.
|
# Publishing to CurseForge requires you to set the CURSEFORGE_TOKEN environment variable to one of your CurseForge API tokens.
|
||||||
|
#
|
||||||
# The project's numeric ID on CurseForge. You can find this in the About Project box.
|
# The project's numeric ID on CurseForge. You can find this in the About Project box.
|
||||||
# Leave this empty if you don't want to publish on CurseForge.
|
# Leave this empty if you don't want to publish on CurseForge.
|
||||||
curseForgeProjectId =
|
curseForgeProjectId =
|
||||||
@@ -99,18 +191,48 @@ curseForgeProjectId =
|
|||||||
# Where type can be one of [requiredDependency, embeddedLibrary, optionalDependency, tool, incompatible],
|
# Where type can be one of [requiredDependency, embeddedLibrary, optionalDependency, tool, incompatible],
|
||||||
# and the name is the CurseForge project slug of the other mod.
|
# and the name is the CurseForge project slug of the other mod.
|
||||||
# Example: requiredDependency:railcraft;embeddedLibrary:cofhlib;incompatible:buildcraft
|
# Example: requiredDependency:railcraft;embeddedLibrary:cofhlib;incompatible:buildcraft
|
||||||
# Note: GTNH Mixins is automatically set as a required dependency if usesMixins = true
|
# Note: UniMixins is automatically set as a required dependency if usesMixins = true.
|
||||||
curseForgeRelations =
|
curseForgeRelations =
|
||||||
|
|
||||||
|
# Optional parameter to customize the produced artifacts. Use this to preserve artifact naming when migrating older
|
||||||
# Optional parameter to customize the produced artifacts. Use this to preserver artifact naming when migrating older
|
|
||||||
# projects. New projects should not use this parameter.
|
# projects. New projects should not use this parameter.
|
||||||
# customArchiveBaseName =
|
# customArchiveBaseName =
|
||||||
|
|
||||||
# Optional parameter to prevent the source code from being published
|
# Optional parameter to customize the default working directory used by the runClient* tasks. Relative to the project directory.
|
||||||
# noPublishedSources =
|
# runClientWorkingDirectory = run/client
|
||||||
|
|
||||||
# Uncomment this to disable spotless checks
|
# Optional parameter to customize the default working directory used by the runServer* tasks. Relative to the project directory.
|
||||||
|
# runServerWorkingDirectory = run/server
|
||||||
|
|
||||||
|
# Optional parameter to have the build automatically fail if an illegal version is used.
|
||||||
|
# This can be useful if you e.g. only want to allow versions in the form of '1.1.xxx'.
|
||||||
|
# The check is ONLY performed if the version is a git tag.
|
||||||
|
# Note: the specified string must be escaped, so e.g. 1\\.1\\.\\d+ instead of 1\.1\.\d+
|
||||||
|
# versionPattern =
|
||||||
|
|
||||||
|
# Uncomment to prevent the source code from being published.
|
||||||
|
# noPublishedSources = true
|
||||||
|
|
||||||
|
# Uncomment this to disable Spotless checks.
|
||||||
# This should only be uncommented to keep it easier to sync with upstream/other forks.
|
# This should only be uncommented to keep it easier to sync with upstream/other forks.
|
||||||
# That is, if there is no other active fork/upstream, NEVER change this.
|
# That is, if there is no other active fork/upstream, NEVER change this.
|
||||||
# disableSpotless = true
|
# disableSpotless = true
|
||||||
|
|
||||||
|
# Uncomment this to disable Checkstyle checks (currently wildcard import check).
|
||||||
|
# disableCheckstyle = true
|
||||||
|
|
||||||
|
# Override the IDEA build type. Valid values are: "" (leave blank, do not override), "idea" (force use native IDEA build), "gradle"
|
||||||
|
# (force use delegated build).
|
||||||
|
# This is meant to be set in $HOME/.gradle/gradle.properties.
|
||||||
|
# e.g. add "systemProp.org.gradle.project.ideaOverrideBuildType=idea" will override the build type to be native build.
|
||||||
|
# WARNING: If you do use this option, it will overwrite whatever you have in your existing projects. This might not be what you want!
|
||||||
|
# Usually there is no need to uncomment this here as other developers do not necessarily use the same build type as you.
|
||||||
|
# ideaOverrideBuildType = idea
|
||||||
|
|
||||||
|
# Whether IDEA should run spotless checks when pressing the Build button.
|
||||||
|
# This is meant to be set in $HOME/.gradle/gradle.properties.
|
||||||
|
# ideaCheckSpotlessOnBuild = true
|
||||||
|
|
||||||
|
# Non-GTNH properties
|
||||||
|
org.gradle.configuration-cache = true
|
||||||
|
org.gradle.parallel = true
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
#This file is generated by updateDaemonJvm
|
||||||
|
toolchainUrl.FREE_BSD.AARCH64=https\://api.foojay.io/disco/v3.0/ids/97d46b5ff4df0bf61e95652a190a5567/redirect
|
||||||
|
toolchainUrl.FREE_BSD.X86_64=https\://api.foojay.io/disco/v3.0/ids/9ef54a08e06b0754cee9fc95ed3a3134/redirect
|
||||||
|
toolchainUrl.LINUX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/97d46b5ff4df0bf61e95652a190a5567/redirect
|
||||||
|
toolchainUrl.LINUX.X86_64=https\://api.foojay.io/disco/v3.0/ids/9ef54a08e06b0754cee9fc95ed3a3134/redirect
|
||||||
|
toolchainUrl.MAC_OS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/1df82b76031285ef2e6a4f59ffe9299d/redirect
|
||||||
|
toolchainUrl.MAC_OS.X86_64=https\://api.foojay.io/disco/v3.0/ids/c7d5be6a02945ac2e045048ee54a7d32/redirect
|
||||||
|
toolchainUrl.UNIX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/97d46b5ff4df0bf61e95652a190a5567/redirect
|
||||||
|
toolchainUrl.UNIX.X86_64=https\://api.foojay.io/disco/v3.0/ids/9ef54a08e06b0754cee9fc95ed3a3134/redirect
|
||||||
|
toolchainUrl.WINDOWS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/643f404f769811f5f265fd66f7af5d89/redirect
|
||||||
|
toolchainUrl.WINDOWS.X86_64=https\://api.foojay.io/disco/v3.0/ids/38256085a73e137cb4937ea9c4807fec/redirect
|
||||||
|
toolchainVersion=25
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.0-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
validateDistributionUrl=true
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
#
|
#
|
||||||
# Copyright © 2015-2021 the original authors.
|
# Copyright © 2015 the original authors.
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# you may not use this file except in compliance with the License.
|
# you may not use this file except in compliance with the License.
|
||||||
@@ -15,6 +15,8 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
#
|
#
|
||||||
@@ -55,7 +57,7 @@
|
|||||||
# Darwin, MinGW, and NonStop.
|
# Darwin, MinGW, and NonStop.
|
||||||
#
|
#
|
||||||
# (3) This script is generated from the Groovy template
|
# (3) This script is generated from the Groovy template
|
||||||
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
# https://github.com/gradle/gradle/blob/b631911858264c0b6e4d6603d677ff5218766cee/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||||
# within the Gradle project.
|
# within the Gradle project.
|
||||||
#
|
#
|
||||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||||
@@ -84,7 +86,7 @@ done
|
|||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
APP_BASE_NAME=${0##*/}
|
APP_BASE_NAME=${0##*/}
|
||||||
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
||||||
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
|
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
|
||||||
|
|
||||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||||
MAX_FD=maximum
|
MAX_FD=maximum
|
||||||
@@ -112,7 +114,6 @@ case "$( uname )" in #(
|
|||||||
NONSTOP* ) nonstop=true ;;
|
NONSTOP* ) nonstop=true ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
|
||||||
|
|
||||||
|
|
||||||
# Determine the Java command to use to start the JVM.
|
# Determine the Java command to use to start the JVM.
|
||||||
@@ -170,7 +171,6 @@ fi
|
|||||||
# For Cygwin or MSYS, switch paths to Windows format before running java
|
# For Cygwin or MSYS, switch paths to Windows format before running java
|
||||||
if "$cygwin" || "$msys" ; then
|
if "$cygwin" || "$msys" ; then
|
||||||
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
|
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
|
||||||
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
|
|
||||||
|
|
||||||
JAVACMD=$( cygpath --unix "$JAVACMD" )
|
JAVACMD=$( cygpath --unix "$JAVACMD" )
|
||||||
|
|
||||||
@@ -203,15 +203,14 @@ fi
|
|||||||
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||||
|
|
||||||
# Collect all arguments for the java command:
|
# Collect all arguments for the java command:
|
||||||
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
|
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
|
||||||
# and any embedded shellness will be escaped.
|
# and any embedded shellness will be escaped.
|
||||||
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
|
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
|
||||||
# treated as '${Hostname}' itself on the command line.
|
# treated as '${Hostname}' itself on the command line.
|
||||||
|
|
||||||
set -- \
|
set -- \
|
||||||
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
||||||
-classpath "$CLASSPATH" \
|
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
|
||||||
org.gradle.wrapper.GradleWrapperMain \
|
|
||||||
"$@"
|
"$@"
|
||||||
|
|
||||||
# Stop when "xargs" is not available.
|
# Stop when "xargs" is not available.
|
||||||
|
|||||||
@@ -13,6 +13,8 @@
|
|||||||
@rem See the License for the specific language governing permissions and
|
@rem See the License for the specific language governing permissions and
|
||||||
@rem limitations under the License.
|
@rem limitations under the License.
|
||||||
@rem
|
@rem
|
||||||
|
@rem SPDX-License-Identifier: Apache-2.0
|
||||||
|
@rem
|
||||||
|
|
||||||
@if "%DEBUG%"=="" @echo off
|
@if "%DEBUG%"=="" @echo off
|
||||||
@rem ##########################################################################
|
@rem ##########################################################################
|
||||||
@@ -43,11 +45,11 @@ set JAVA_EXE=java.exe
|
|||||||
%JAVA_EXE% -version >NUL 2>&1
|
%JAVA_EXE% -version >NUL 2>&1
|
||||||
if %ERRORLEVEL% equ 0 goto execute
|
if %ERRORLEVEL% equ 0 goto execute
|
||||||
|
|
||||||
echo.
|
echo. 1>&2
|
||||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
|
||||||
echo.
|
echo. 1>&2
|
||||||
echo Please set the JAVA_HOME variable in your environment to match the
|
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||||
echo location of your Java installation.
|
echo location of your Java installation. 1>&2
|
||||||
|
|
||||||
goto fail
|
goto fail
|
||||||
|
|
||||||
@@ -57,22 +59,21 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
|||||||
|
|
||||||
if exist "%JAVA_EXE%" goto execute
|
if exist "%JAVA_EXE%" goto execute
|
||||||
|
|
||||||
echo.
|
echo. 1>&2
|
||||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
|
||||||
echo.
|
echo. 1>&2
|
||||||
echo Please set the JAVA_HOME variable in your environment to match the
|
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||||
echo location of your Java installation.
|
echo location of your Java installation. 1>&2
|
||||||
|
|
||||||
goto fail
|
goto fail
|
||||||
|
|
||||||
:execute
|
:execute
|
||||||
@rem Setup the command line
|
@rem Setup the command line
|
||||||
|
|
||||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
|
||||||
|
|
||||||
|
|
||||||
@rem Execute Gradle
|
@rem Execute Gradle
|
||||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
|
||||||
|
|
||||||
:end
|
:end
|
||||||
@rem End local scope for the variables with windows NT shell
|
@rem End local scope for the variables with windows NT shell
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ pluginManagement {
|
|||||||
name "GTNH Maven"
|
name "GTNH Maven"
|
||||||
url "https://nexus.gtnewhorizons.com/repository/public/"
|
url "https://nexus.gtnewhorizons.com/repository/public/"
|
||||||
mavenContent {
|
mavenContent {
|
||||||
|
includeGroup("com.gtnewhorizons")
|
||||||
includeGroupByRegex("com\\.gtnewhorizons\\..+")
|
includeGroupByRegex("com\\.gtnewhorizons\\..+")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -16,12 +17,7 @@ pluginManagement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'com.diffplug.blowdryerSetup' version '1.7.1'
|
id 'com.gtnewhorizons.gtnhsettingsconvention' version '2.0.27'
|
||||||
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.7.0' // Provides java toolchains
|
|
||||||
}
|
}
|
||||||
|
|
||||||
blowdryerSetup {
|
|
||||||
repoSubfolder 'gtnhShared'
|
|
||||||
github('GTNewHorizons/ExampleMod1.7.10', 'tag', '0.2.0')
|
|
||||||
//devLocal '.' // Use this when testing config updates locally
|
|
||||||
}
|
|
||||||
@@ -1,2 +1,5 @@
|
|||||||
|
tile.relocation.blockmovingrow.name=Moving Block
|
||||||
|
|
||||||
tile.mcframes.frame.name=Frame
|
tile.mcframes.frame.name=Frame
|
||||||
tile.mcframes.motor|0.name=Debug Frame Motor
|
tile.mcframes.motor.name=Debug Frame Motor
|
||||||
|
tile.mcframes.motor|0.name=Debug Frame Motor
|
||||||
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
@@ -1,6 +0,0 @@
|
|||||||
[{
|
|
||||||
"repo": "https://github.com/GTNewHorizons/MrTJPCore/releases/download/1.1.1/",
|
|
||||||
"file": "MrTJPCore-1.7.10-1.1.1.jar",
|
|
||||||
"dev": "MrTJPCore-1.7.10-1.1.1-dev.jar",
|
|
||||||
"class": "mrtjp.core.handler.MrTJPCoreMod"
|
|
||||||
}]
|
|
||||||
|
Before Width: | Height: | Size: 274 KiB After Width: | Height: | Size: 205 KiB |
@@ -12,11 +12,7 @@
|
|||||||
"credits": "",
|
"credits": "",
|
||||||
"logoFile": "",
|
"logoFile": "",
|
||||||
"screenshots": [],
|
"screenshots": [],
|
||||||
"parent": "",
|
"parent": ""
|
||||||
"requiredMods": ["MrTJPCoreMod"],
|
|
||||||
"dependencies": [],
|
|
||||||
"dependants": [],
|
|
||||||
"useDependencyInformation": true
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"modid": "MCFrames",
|
"modid": "MCFrames",
|
||||||
@@ -30,10 +26,6 @@
|
|||||||
"credits": "",
|
"credits": "",
|
||||||
"logoFile": "fr_logo.png",
|
"logoFile": "fr_logo.png",
|
||||||
"screenshots": [],
|
"screenshots": [],
|
||||||
"parent": "",
|
"parent": ""
|
||||||
"requiredMods": ["${modId}"],
|
|
||||||
"dependencies": [],
|
|
||||||
"dependants": [],
|
|
||||||
"useDependencyInformation": true
|
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
@@ -2,5 +2,27 @@
|
|||||||
* Copyright (c) 2015. Created by MrTJP. All rights reserved.
|
* Copyright (c) 2015. Created by MrTJP. All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// @API(owner = "MCFrames", provides = "MCFrames|API", apiVersion = "GRADLETOKEN_VERSION")
|
// spotless:off
|
||||||
|
//
|
||||||
|
// You may wonder, "why is this commented out?"
|
||||||
|
// When FML sorts the modcontainers, it includes APIs. The API's dependency is always its owner but if an API is found
|
||||||
|
// embedded in a mod which isn't the owner, that mod is set as the API's dependant. In this case, the same jar contains
|
||||||
|
// both ForgeRelocation and MCFrames, each with an API. So when FML determins which APIs are embedded where, it sees
|
||||||
|
// MCFrames|API embedded in ForgeRelocation and ForgeRelocation|API embedded in MCFrames. This results in the following
|
||||||
|
// circular load order:
|
||||||
|
//
|
||||||
|
// MCFrames --------------> MCFrames|API <----+
|
||||||
|
// ^ ^ | |
|
||||||
|
// | | | |
|
||||||
|
// | +-------------------+ | +- MrTJPCore
|
||||||
|
// | | | |
|
||||||
|
// | | v |
|
||||||
|
// ForgeRelocation|API <--- ForgeRelocation <-+
|
||||||
|
//
|
||||||
|
// spotless:on
|
||||||
|
|
||||||
|
// @API(owner = "MCFrames", provides = "MCFrames|API", apiVersion = Tags.VERSION)
|
||||||
package mrtjp.mcframes.api;
|
package mrtjp.mcframes.api;
|
||||||
|
|
||||||
|
// import cpw.mods.fml.common.API;
|
||||||
|
// import mrtjp.relocation.Tags;
|
||||||
@@ -177,42 +177,34 @@ object RenderFrame extends ISimpleBlockRenderingHandler {
|
|||||||
id: Int,
|
id: Int,
|
||||||
rb: RenderBlocks
|
rb: RenderBlocks
|
||||||
) = {
|
) = {
|
||||||
renderWorldBlock(rb, world, x, y, z, world.getBlockMetadata(x, y, z))
|
|
||||||
true
|
|
||||||
}
|
|
||||||
|
|
||||||
def renderWorldBlock(
|
|
||||||
r: RenderBlocks,
|
|
||||||
w: IBlockAccess,
|
|
||||||
x: Int,
|
|
||||||
y: Int,
|
|
||||||
z: Int,
|
|
||||||
meta: Int
|
|
||||||
) {
|
|
||||||
TextureUtils.bindAtlas(0)
|
TextureUtils.bindAtlas(0)
|
||||||
CCRenderState.reset()
|
val state = CCRenderState.instance
|
||||||
CCRenderState.lightMatrix.locate(w, x, y, z)
|
state.resetInstance()
|
||||||
CCRenderState.setBrightness(w, x, y, z)
|
state.lightMatrix.locate(world, x, y, z)
|
||||||
|
state.setBrightnessInstance(world, x, y, z)
|
||||||
|
|
||||||
if (r.hasOverrideBlockTexture) {
|
if (rb.hasOverrideBlockTexture) {
|
||||||
getOrGenerateModel(0).render(
|
getOrGenerateModel(0).render(
|
||||||
new Translation(x, y, z),
|
new Translation(x, y, z),
|
||||||
new IconTransformation(r.overrideBlockTexture)
|
new IconTransformation(rb.overrideBlockTexture)
|
||||||
)
|
)
|
||||||
} else RenderFrame.render(new Vector3(x, y, z), 0)
|
} else RenderFrame.render(new Vector3(x, y, z), 0)
|
||||||
|
state.lightMatrix.access = null
|
||||||
|
true
|
||||||
}
|
}
|
||||||
|
|
||||||
def renderInvBlock(r: RenderBlocks, meta: Int) {
|
def renderInvBlock(r: RenderBlocks, meta: Int) {
|
||||||
TextureUtils.bindAtlas(0)
|
TextureUtils.bindAtlas(0)
|
||||||
CCRenderState.reset()
|
val state = CCRenderState.instance
|
||||||
CCRenderState.setDynamic()
|
state.resetInstance()
|
||||||
CCRenderState.pullLightmap()
|
state.setDynamicInstance()
|
||||||
|
state.pullLightmapInstance()
|
||||||
|
|
||||||
CCRenderState.startDrawing()
|
state.startDrawingInstance()
|
||||||
RenderFrame.render(new Vector3(-0.5, -0.5, -0.5), 0)
|
RenderFrame.render(new Vector3(-0.5, -0.5, -0.5), 0)
|
||||||
|
|
||||||
CCRenderState.render()
|
state.renderInstance()
|
||||||
CCRenderState.draw()
|
state.drawInstance()
|
||||||
}
|
}
|
||||||
|
|
||||||
def registerIcons(reg: IIconRegister) {
|
def registerIcons(reg: IIconRegister) {
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ import cpw.mods.fml.common.event.{
|
|||||||
import mrtjp.core.data.{ModConfig, SpecialConfigGui, TModGuiFactory}
|
import mrtjp.core.data.{ModConfig, SpecialConfigGui, TModGuiFactory}
|
||||||
import mrtjp.mcframes.api.MCFramesAPI
|
import mrtjp.mcframes.api.MCFramesAPI
|
||||||
import mrtjp.mcframes.{BlockFrame, BlockMotor, StickRegistry}
|
import mrtjp.mcframes.{BlockFrame, BlockMotor, StickRegistry}
|
||||||
|
import mrtjp.relocation.Tags
|
||||||
import net.minecraft.client.gui.GuiScreen
|
import net.minecraft.client.gui.GuiScreen
|
||||||
|
|
||||||
@Mod(
|
@Mod(
|
||||||
@@ -31,7 +32,7 @@ object MCFramesMod {
|
|||||||
|
|
||||||
final val modID = "MCFrames"
|
final val modID = "MCFrames"
|
||||||
final val modName = "MCFrames"
|
final val modName = "MCFrames"
|
||||||
final val version = "GRADLETOKEN_VERSION"
|
final val version = Tags.VERSION
|
||||||
|
|
||||||
var blockFrame: BlockFrame = _
|
var blockFrame: BlockFrame = _
|
||||||
var blockMotor: BlockMotor = _
|
var blockMotor: BlockMotor = _
|
||||||
|
|||||||
@@ -2,7 +2,8 @@
|
|||||||
* Copyright (c) 2015. Created by MrTJP. All rights reserved.
|
* Copyright (c) 2015. Created by MrTJP. All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@API(owner = "ForgeRelocation", provides = "ForgeRelocation|API", apiVersion = "GRADLETOKEN_VERSION")
|
@API(owner = "ForgeRelocation", provides = "ForgeRelocation|API", apiVersion = Tags.VERSION)
|
||||||
package mrtjp.relocation.api;
|
package mrtjp.relocation.api;
|
||||||
|
|
||||||
import cpw.mods.fml.common.API;
|
import cpw.mods.fml.common.API;
|
||||||
|
import mrtjp.relocation.Tags;
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
package mrtjp.relocation.asm
|
||||||
|
|
||||||
|
import java.util.{Map => JMap}
|
||||||
|
import cpw.mods.fml.relauncher.IFMLLoadingPlugin
|
||||||
|
|
||||||
|
@IFMLLoadingPlugin.MCVersion("1.7.10")
|
||||||
|
@IFMLLoadingPlugin.TransformerExclusions(value =
|
||||||
|
Array("mrtjp.relocation.asm.*", "scala")
|
||||||
|
)
|
||||||
|
class RelocationPlugin extends IFMLLoadingPlugin {
|
||||||
|
|
||||||
|
override def getASMTransformerClass = Array(
|
||||||
|
"mrtjp.relocation.asm.Transformer"
|
||||||
|
)
|
||||||
|
override def getSetupClass = null
|
||||||
|
override def getModContainerClass = null
|
||||||
|
override def getAccessTransformerClass = null
|
||||||
|
override def injectData(data: JMap[String, AnyRef]): Unit = {}
|
||||||
|
}
|
||||||
@@ -5,12 +5,9 @@
|
|||||||
*/
|
*/
|
||||||
package mrtjp.relocation.asm
|
package mrtjp.relocation.asm
|
||||||
|
|
||||||
import java.util.{Map => JMap}
|
|
||||||
|
|
||||||
import cpw.mods.fml.common.asm.transformers.deobf.FMLDeobfuscatingRemapper.{
|
import cpw.mods.fml.common.asm.transformers.deobf.FMLDeobfuscatingRemapper.{
|
||||||
INSTANCE => mapper
|
INSTANCE => mapper
|
||||||
}
|
}
|
||||||
import cpw.mods.fml.relauncher.{IFMLCallHook, IFMLLoadingPlugin}
|
|
||||||
import mrtjp.relocation.handler.RelocationMod
|
import mrtjp.relocation.handler.RelocationMod
|
||||||
import net.minecraft.launchwrapper.{IClassTransformer, Launch}
|
import net.minecraft.launchwrapper.{IClassTransformer, Launch}
|
||||||
import org.objectweb.asm.Opcodes._
|
import org.objectweb.asm.Opcodes._
|
||||||
@@ -19,24 +16,6 @@ import org.objectweb.asm.{ClassReader, ClassWriter}
|
|||||||
|
|
||||||
import scala.collection.JavaConversions._
|
import scala.collection.JavaConversions._
|
||||||
|
|
||||||
/** Add "Dfml.coreMods.load=mrtjp.relocation.asm.RelocationPlugin" to launch
|
|
||||||
* configs to enable in a development workspace.
|
|
||||||
*/
|
|
||||||
@IFMLLoadingPlugin.MCVersion("1.7.10")
|
|
||||||
@IFMLLoadingPlugin.TransformerExclusions(value =
|
|
||||||
Array("mrtjp.relocation.asm.*", "scala")
|
|
||||||
)
|
|
||||||
class RelocationPlugin extends IFMLLoadingPlugin with IFMLCallHook {
|
|
||||||
override def getASMTransformerClass = Array(
|
|
||||||
"mrtjp.relocation.asm.Transformer"
|
|
||||||
)
|
|
||||||
override def getSetupClass = "mrtjp.relocation.asm.RelocationPlugin"
|
|
||||||
override def getModContainerClass = null
|
|
||||||
override def getAccessTransformerClass = null
|
|
||||||
override def injectData(data: JMap[String, AnyRef]): Unit = {}
|
|
||||||
override def call(): Void = null
|
|
||||||
}
|
|
||||||
|
|
||||||
class Transformer extends IClassTransformer {
|
class Transformer extends IClassTransformer {
|
||||||
type MethodChecker = (String, MethodNode) => Boolean
|
type MethodChecker = (String, MethodNode) => Boolean
|
||||||
type InsTransformer = MethodNode => Unit
|
type InsTransformer = MethodNode => Unit
|
||||||
|
|||||||
@@ -52,7 +52,9 @@ object RelocationClientEventHandler {
|
|||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
def clientTick(event: TickEvent.ClientTickEvent) {
|
def clientTick(event: TickEvent.ClientTickEvent) {
|
||||||
if (event.phase == TickEvent.Phase.END)
|
if (event.phase == TickEvent.Phase.END) {
|
||||||
MovementManager2.onTick(true)
|
MovementManager2.onTick(true)
|
||||||
|
MovingRenderer.onTick()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -14,6 +14,7 @@ import cpw.mods.fml.common.event.{
|
|||||||
import mrtjp.core.data.{ModConfig, SpecialConfigGui, TModGuiFactory}
|
import mrtjp.core.data.{ModConfig, SpecialConfigGui, TModGuiFactory}
|
||||||
import mrtjp.relocation.api._
|
import mrtjp.relocation.api._
|
||||||
import mrtjp.relocation.{BlockMovingRow, MovingTileRegistry}
|
import mrtjp.relocation.{BlockMovingRow, MovingTileRegistry}
|
||||||
|
import mrtjp.relocation.Tags
|
||||||
import net.minecraft.client.gui.GuiScreen
|
import net.minecraft.client.gui.GuiScreen
|
||||||
import org.apache.logging.log4j.LogManager
|
import org.apache.logging.log4j.LogManager
|
||||||
|
|
||||||
@@ -32,7 +33,7 @@ object RelocationMod {
|
|||||||
|
|
||||||
final val modID = "ForgeRelocation"
|
final val modID = "ForgeRelocation"
|
||||||
final val modName = "ForgeRelocation"
|
final val modName = "ForgeRelocation"
|
||||||
final val version = "GRADLETOKEN_VERSION"
|
final val version = Tags.VERSION
|
||||||
|
|
||||||
val log = LogManager.getFormatterLogger(modID)
|
val log = LogManager.getFormatterLogger(modID)
|
||||||
|
|
||||||
|
|||||||
@@ -17,24 +17,23 @@ import net.minecraft.client.Minecraft
|
|||||||
import net.minecraft.init.Blocks
|
import net.minecraft.init.Blocks
|
||||||
import net.minecraft.world.{ChunkCoordIntPair, World}
|
import net.minecraft.world.{ChunkCoordIntPair, World}
|
||||||
import net.minecraftforge.common.DimensionManager
|
import net.minecraftforge.common.DimensionManager
|
||||||
|
|
||||||
import scala.collection.mutable.{
|
import scala.collection.mutable.{
|
||||||
HashMap => MHashMap,
|
HashMap => MHashMap,
|
||||||
MultiMap => MMultiMap,
|
MultiMap => MMultiMap,
|
||||||
Set => MSet
|
Set => MSet
|
||||||
}
|
}
|
||||||
|
|
||||||
import scala.ref.WeakReference
|
import scala.ref.WeakReference
|
||||||
|
|
||||||
object MovementManager2 {
|
object MovementManager2 {
|
||||||
val serverRelocations = MHashMap[Int, WorldStructs]()
|
val serverRelocations = new WorldStructsMap
|
||||||
val clientRelocations = MHashMap[Int, WorldStructs]()
|
val clientRelocations = new WorldStructsMap
|
||||||
|
|
||||||
def relocationMap(isClient: Boolean) =
|
def relocationMap(isClient: Boolean) =
|
||||||
if (isClient) clientRelocations else serverRelocations
|
if (isClient) clientRelocations else serverRelocations
|
||||||
|
|
||||||
def getWorldStructs(w: World) =
|
def getWorldStructs(w: World) =
|
||||||
relocationMap(w.isRemote)
|
relocationMap(w.isRemote).getOrCreate(w.provider.dimensionId)
|
||||||
.getOrElseUpdate(w.provider.dimensionId, new WorldStructs)
|
|
||||||
|
|
||||||
def getWorld(dim: Int, isClient: Boolean) =
|
def getWorld(dim: Int, isClient: Boolean) =
|
||||||
if (!isClient) DimensionManager.getWorld(dim)
|
if (!isClient) DimensionManager.getWorld(dim)
|
||||||
@@ -106,8 +105,10 @@ object MovementManager2 {
|
|||||||
RelocationSPH.forceSendData()
|
RelocationSPH.forceSendData()
|
||||||
}
|
}
|
||||||
|
|
||||||
def isMoving(w: World, x: Int, y: Int, z: Int) =
|
def isMoving(w: World, x: Int, y: Int, z: Int) = {
|
||||||
getWorldStructs(w).contains(x, y, z)
|
if (w == null) false
|
||||||
|
else getWorldStructs(w).contains(x, y, z)
|
||||||
|
}
|
||||||
|
|
||||||
def addStructToWorld(w: World, b: BlockStruct) {
|
def addStructToWorld(w: World, b: BlockStruct) {
|
||||||
getWorldStructs(w).addStruct(b)
|
getWorldStructs(w).addStruct(b)
|
||||||
@@ -132,7 +133,7 @@ object MovementManager2 {
|
|||||||
map.addBinding(MathLib.normal(b, moveDir), MathLib.basis(b, moveDir))
|
map.addBinding(MathLib.normal(b, moveDir), MathLib.basis(b, moveDir))
|
||||||
|
|
||||||
val shift = if ((moveDir & 1) == 1) 1 else -1
|
val shift = if ((moveDir & 1) == 1) 1 else -1
|
||||||
val rowB = Set.newBuilder[BlockRow]
|
val rowB = Array.newBuilder[BlockRow]
|
||||||
for (normal <- map.keys) {
|
for (normal <- map.keys) {
|
||||||
val line = map(normal).toArray
|
val line = map(normal).toArray
|
||||||
val sline =
|
val sline =
|
||||||
@@ -164,24 +165,26 @@ object MovementManager2 {
|
|||||||
|
|
||||||
def onTick(isClient: Boolean) {
|
def onTick(isClient: Boolean) {
|
||||||
val map = relocationMap(isClient)
|
val map = relocationMap(isClient)
|
||||||
for ((dim, ws) <- map) if (ws.nonEmpty) {
|
map.foreach { (dim, ws) =>
|
||||||
ws.pushAll()
|
if (ws.nonEmpty) {
|
||||||
val world = getWorld(dim, isClient)
|
ws.pushAll()
|
||||||
if (world != null)
|
val world = getWorld(dim, isClient)
|
||||||
for (bs <- ws.structs)
|
if (world != null)
|
||||||
for (br <- bs.rows)
|
for (bs <- ws.structs)
|
||||||
br.pushEntities(world, bs.progress)
|
for (br <- bs.rows)
|
||||||
|
br.pushEntities(world, bs.progress)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isClient) {
|
if (!isClient) {
|
||||||
val fin = map
|
map.foreach { (dim, ws) =>
|
||||||
.map(pair => (pair._1, pair._2.removeFinished()))
|
val finished = ws.removeFinished()
|
||||||
.filter(_._2.nonEmpty)
|
if (finished.nonEmpty) {
|
||||||
for ((dim, b) <- fin) {
|
val w = getWorld(dim, false)
|
||||||
val w = getWorld(dim, false)
|
if (w != null) for (s <- finished) {
|
||||||
if (w != null) for (s <- b) {
|
cycleMove(w, s)
|
||||||
cycleMove(w, s)
|
sendCycle(w, s)
|
||||||
sendCycle(w, s)
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -218,33 +221,171 @@ object MovementManager2 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class WorldStructsMap {
|
||||||
|
private var dims = new Array[Int](4)
|
||||||
|
private var structs = new Array[WorldStructs](4)
|
||||||
|
private var size = 0
|
||||||
|
|
||||||
|
def getOrCreate(dim: Int): WorldStructs = synchronized {
|
||||||
|
var i = 0
|
||||||
|
while (i < size) {
|
||||||
|
if (dims(i) == dim) return structs(i)
|
||||||
|
i += 1
|
||||||
|
}
|
||||||
|
val ws = new WorldStructs
|
||||||
|
if (size == dims.length) {
|
||||||
|
val nd = new Array[Int](dims.length * 2)
|
||||||
|
val ns = new Array[WorldStructs](dims.length * 2)
|
||||||
|
System.arraycopy(dims, 0, nd, 0, size)
|
||||||
|
System.arraycopy(structs, 0, ns, 0, size)
|
||||||
|
dims = nd
|
||||||
|
structs = ns
|
||||||
|
}
|
||||||
|
dims(size) = dim
|
||||||
|
structs(size) = ws
|
||||||
|
size += 1
|
||||||
|
ws
|
||||||
|
}
|
||||||
|
|
||||||
|
def foreach(f: (Int, WorldStructs) => Unit) {
|
||||||
|
val n = synchronized { size }
|
||||||
|
val ds = new Array[Int](n)
|
||||||
|
val ss = new Array[WorldStructs](n)
|
||||||
|
synchronized {
|
||||||
|
System.arraycopy(dims, 0, ds, 0, n)
|
||||||
|
System.arraycopy(structs, 0, ss, 0, n)
|
||||||
|
}
|
||||||
|
var i = 0
|
||||||
|
while (i < n) {
|
||||||
|
f(ds(i), ss(i))
|
||||||
|
i += 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
class WorldStructs {
|
class WorldStructs {
|
||||||
var structs: Set[BlockStruct] = Set.empty
|
private val noStructs = new Array[BlockStruct](0)
|
||||||
|
private var structsArr = new Array[BlockStruct](4)
|
||||||
|
private var numStructs = 0
|
||||||
|
|
||||||
def isEmpty = structs.isEmpty
|
def isEmpty = synchronized { numStructs == 0 }
|
||||||
|
|
||||||
def nonEmpty = !isEmpty
|
def nonEmpty = synchronized { numStructs > 0 }
|
||||||
|
|
||||||
def contains(x: Int, y: Int, z: Int) = structs.exists(_.contains(x, y, z))
|
def contains(x: Int, y: Int, z: Int): Boolean = synchronized {
|
||||||
|
var i = 0
|
||||||
|
while (i < numStructs) {
|
||||||
|
if (structsArr(i).contains(x, y, z)) return true
|
||||||
|
i += 1
|
||||||
|
}
|
||||||
|
false
|
||||||
|
}
|
||||||
|
|
||||||
def addStruct(b: BlockStruct) { structs += b }
|
def addStruct(b: BlockStruct): Unit = synchronized {
|
||||||
|
var i = 0
|
||||||
|
while (i < numStructs) {
|
||||||
|
if (structsArr(i).id == b.id) return
|
||||||
|
i += 1
|
||||||
|
}
|
||||||
|
if (numStructs == structsArr.length) {
|
||||||
|
val ns = new Array[BlockStruct](structsArr.length * 2)
|
||||||
|
System.arraycopy(structsArr, 0, ns, 0, numStructs)
|
||||||
|
structsArr = ns
|
||||||
|
}
|
||||||
|
structsArr(numStructs) = b
|
||||||
|
numStructs += 1
|
||||||
|
}
|
||||||
|
|
||||||
def pushAll() { structs.foreach(_.push()) }
|
def pushAll() = synchronized {
|
||||||
|
var i = 0
|
||||||
|
while (i < numStructs) {
|
||||||
|
structsArr(i).push()
|
||||||
|
i += 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
def removeFinished() = {
|
def removeFinished(): Array[BlockStruct] = synchronized {
|
||||||
val finished = structs.filter(_.isFinished)
|
var nf = 0
|
||||||
structs = structs.filterNot(_.isFinished)
|
var i = 0
|
||||||
|
while (i < numStructs) {
|
||||||
|
if (structsArr(i).isFinished) nf += 1
|
||||||
|
i += 1
|
||||||
|
}
|
||||||
|
|
||||||
|
if (nf == 0) return noStructs
|
||||||
|
|
||||||
|
val finished = new Array[BlockStruct](nf)
|
||||||
|
var finish = 0
|
||||||
|
var keep = 0
|
||||||
|
i = 0
|
||||||
|
while (i < numStructs) {
|
||||||
|
val s = structsArr(i)
|
||||||
|
if (s.isFinished) {
|
||||||
|
finished(finish) = s
|
||||||
|
finish += 1
|
||||||
|
} else {
|
||||||
|
structsArr(keep) = s
|
||||||
|
keep += 1
|
||||||
|
}
|
||||||
|
i += 1
|
||||||
|
}
|
||||||
|
var j = keep
|
||||||
|
while (j < numStructs) {
|
||||||
|
structsArr(j) = null
|
||||||
|
j += 1
|
||||||
|
}
|
||||||
|
numStructs = keep
|
||||||
finished
|
finished
|
||||||
}
|
}
|
||||||
|
|
||||||
def removeStruct(s: BlockStruct) {
|
def removeStruct(s: BlockStruct) = synchronized {
|
||||||
structs = structs.filterNot(_ == s)
|
var keep = 0
|
||||||
|
var i = 0
|
||||||
|
while (i < numStructs) {
|
||||||
|
val cur = structsArr(i)
|
||||||
|
if (cur != s) {
|
||||||
|
structsArr(keep) = cur
|
||||||
|
keep += 1
|
||||||
|
}
|
||||||
|
i += 1
|
||||||
|
}
|
||||||
|
var j = keep
|
||||||
|
while (j < numStructs) {
|
||||||
|
structsArr(j) = null
|
||||||
|
j += 1
|
||||||
|
}
|
||||||
|
numStructs = keep
|
||||||
}
|
}
|
||||||
|
|
||||||
def clear() { structs = Set.empty }
|
def clear() = synchronized {
|
||||||
|
var i = 0
|
||||||
|
while (i < numStructs) {
|
||||||
|
structsArr(i) = null
|
||||||
|
i += 1
|
||||||
|
}
|
||||||
|
numStructs = 0
|
||||||
|
}
|
||||||
|
|
||||||
def getChunks: Set[ChunkCoordIntPair] = {
|
def foreachStruct(f: BlockStruct => Unit) = synchronized {
|
||||||
structs.flatMap(_.getChunks)
|
var i = 0
|
||||||
|
while (i < numStructs) {
|
||||||
|
f(structsArr(i))
|
||||||
|
i += 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
def structs: Array[BlockStruct] = synchronized {
|
||||||
|
java.util.Arrays.copyOf(structsArr, numStructs)
|
||||||
|
}
|
||||||
|
|
||||||
|
def getChunks: Set[ChunkCoordIntPair] = synchronized {
|
||||||
|
val c = Set.newBuilder[ChunkCoordIntPair]
|
||||||
|
var i = 0
|
||||||
|
while (i < numStructs) {
|
||||||
|
c ++= structsArr(i).getChunks
|
||||||
|
i += 1
|
||||||
|
}
|
||||||
|
c.result()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -280,18 +421,27 @@ class MoveDesc(b: WeakReference[BlockStruct]) extends IMovementDescriptor {
|
|||||||
class BlockStruct {
|
class BlockStruct {
|
||||||
var id = -1
|
var id = -1
|
||||||
var speed = 1 / 16d
|
var speed = 1 / 16d
|
||||||
var rows: Set[BlockRow] = Set.empty
|
var rows: Array[BlockRow] = Array.empty
|
||||||
var callback = WeakReference[IMovementCallback](null)
|
var callback = WeakReference[IMovementCallback](null)
|
||||||
|
|
||||||
var progress = 0.0d
|
var progress = 0.0d
|
||||||
|
|
||||||
lazy val allBlocks = rows.flatMap(_.allBlocks)
|
lazy val allBlocks: Set[BlockCoord] = rows.iterator.flatMap(_.allBlocks).toSet
|
||||||
lazy val preMoveBlocks = rows.flatMap(_.preMoveBlocks)
|
lazy val preMoveBlocks: Set[BlockCoord] =
|
||||||
lazy val postMoveBlocks = rows.flatMap(_.postMoveBlocks)
|
rows.iterator.flatMap(_.preMoveBlocks).toSet
|
||||||
|
lazy val postMoveBlocks: Set[BlockCoord] =
|
||||||
|
rows.iterator.flatMap(_.postMoveBlocks).toSet
|
||||||
|
|
||||||
def moveDir = rows.head.moveDir
|
def moveDir = rows(0).moveDir
|
||||||
|
|
||||||
def contains(x: Int, y: Int, z: Int) = rows.exists(_.contains(x, y, z))
|
def contains(x: Int, y: Int, z: Int): Boolean = {
|
||||||
|
var i = 0
|
||||||
|
while (i < rows.length) {
|
||||||
|
if (rows(i).contains(x, y, z)) return true
|
||||||
|
i += 1
|
||||||
|
}
|
||||||
|
false
|
||||||
|
}
|
||||||
|
|
||||||
def push() { progress = math.min(1.0, progress + speed) }
|
def push() { progress = math.min(1.0, progress + speed) }
|
||||||
|
|
||||||
@@ -334,10 +484,12 @@ class BlockStruct {
|
|||||||
case _ => false
|
case _ => false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override def hashCode() = id
|
||||||
|
|
||||||
def writeDesc(out: MCDataOutput) {
|
def writeDesc(out: MCDataOutput) {
|
||||||
out.writeFloat(progress.toFloat)
|
out.writeFloat(progress.toFloat)
|
||||||
out.writeFloat(speed.toFloat)
|
out.writeFloat(speed.toFloat)
|
||||||
out.writeByte(rows.size)
|
out.writeByte(rows.length)
|
||||||
for (r <- rows) {
|
for (r <- rows) {
|
||||||
out.writeLong(WorldLib.packCoords(r.pos))
|
out.writeLong(WorldLib.packCoords(r.pos))
|
||||||
out.writeByte(r.moveDir)
|
out.writeByte(r.moveDir)
|
||||||
@@ -348,7 +500,7 @@ class BlockStruct {
|
|||||||
def readDesc(in: MCDataInput) {
|
def readDesc(in: MCDataInput) {
|
||||||
progress = in.readFloat()
|
progress = in.readFloat()
|
||||||
speed = in.readFloat()
|
speed = in.readFloat()
|
||||||
val rb = Set.newBuilder[BlockRow]
|
val rb = Array.newBuilder[BlockRow]
|
||||||
for (i <- 0 until in.readUByte())
|
for (i <- 0 until in.readUByte())
|
||||||
rb += new BlockRow(
|
rb += new BlockRow(
|
||||||
WorldLib.unpackCoords(in.readLong()),
|
WorldLib.unpackCoords(in.readLong()),
|
||||||
@@ -367,12 +519,11 @@ class BlockRow(val pos: BlockCoord, val moveDir: Int, val size: Int) {
|
|||||||
def contains(x: Int, y: Int, z: Int) = {
|
def contains(x: Int, y: Int, z: Int) = {
|
||||||
import MathLib.{basis, normal, shift}
|
import MathLib.{basis, normal, shift}
|
||||||
|
|
||||||
import math.{max, min}
|
|
||||||
|
|
||||||
if (normal(x, y, z, moveDir) == normal(pos, moveDir)) {
|
if (normal(x, y, z, moveDir) == normal(pos, moveDir)) {
|
||||||
val b1 = basis(pos, moveDir)
|
val b1 = basis(pos, moveDir)
|
||||||
val b2 = b1 + size * shift(moveDir ^ 1)
|
val b2 = b1 + size * shift(moveDir ^ 1)
|
||||||
min(b1, b2) to max(b1, b2) contains basis(x, y, z, moveDir)
|
val b = basis(x, y, z, moveDir)
|
||||||
|
b >= math.min(b1, b2) && b <= math.max(b1, b2)
|
||||||
} else false
|
} else false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -30,9 +30,13 @@ object MovingRenderer {
|
|||||||
private var frame = 0.0f
|
private var frame = 0.0f
|
||||||
private var renderBlocks: RenderBlocks = null
|
private var renderBlocks: RenderBlocks = null
|
||||||
|
|
||||||
|
private val renderStruct: BlockStruct => Unit = { s =>
|
||||||
|
for (b <- s.preMoveBlocks)
|
||||||
|
render(b.x, b.y, b.z, renderPos(s, frame))
|
||||||
|
}
|
||||||
|
|
||||||
private def mc = Minecraft.getMinecraft
|
private def mc = Minecraft.getMinecraft
|
||||||
private def world = mc.theWorld
|
private def world = mc.theWorld
|
||||||
private def tes = Tessellator.instance
|
|
||||||
|
|
||||||
private def render(x: Int, y: Int, z: Int, rpos: Vector3) {
|
private def render(x: Int, y: Int, z: Int, rpos: Vector3) {
|
||||||
val oldOcclusion = mc.gameSettings.ambientOcclusion
|
val oldOcclusion = mc.gameSettings.ambientOcclusion
|
||||||
@@ -65,8 +69,9 @@ object MovingRenderer {
|
|||||||
)
|
)
|
||||||
|
|
||||||
for (pass <- 0 to 1) {
|
for (pass <- 0 to 1) {
|
||||||
tes.startDrawingQuads()
|
val tess = Tessellator.instance
|
||||||
tes.setTranslation(
|
tess.startDrawingQuads()
|
||||||
|
tess.setTranslation(
|
||||||
-TileEntityRendererDispatcher.staticPlayerX + MathLib
|
-TileEntityRendererDispatcher.staticPlayerX + MathLib
|
||||||
.clamp(-1f, 1f, rpos.x.toFloat),
|
.clamp(-1f, 1f, rpos.x.toFloat),
|
||||||
-TileEntityRendererDispatcher.staticPlayerY + MathLib
|
-TileEntityRendererDispatcher.staticPlayerY + MathLib
|
||||||
@@ -77,7 +82,7 @@ object MovingRenderer {
|
|||||||
rpos.z.toFloat
|
rpos.z.toFloat
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
tes.setColorOpaque(1, 1, 1)
|
tess.setColorOpaque(1, 1, 1)
|
||||||
|
|
||||||
block.getRenderBlockPass
|
block.getRenderBlockPass
|
||||||
if (block.canRenderInPass(pass)) {
|
if (block.canRenderInPass(pass)) {
|
||||||
@@ -86,8 +91,8 @@ object MovingRenderer {
|
|||||||
renderHack = true
|
renderHack = true
|
||||||
}
|
}
|
||||||
|
|
||||||
tes.setTranslation(0, 0, 0)
|
tess.setTranslation(0, 0, 0)
|
||||||
tes.draw()
|
tess.draw()
|
||||||
}
|
}
|
||||||
RenderHelper.enableStandardItemLighting()
|
RenderHelper.enableStandardItemLighting()
|
||||||
mc.entityRenderer.disableLightmap(frame)
|
mc.entityRenderer.disableLightmap(frame)
|
||||||
@@ -101,9 +106,14 @@ object MovingRenderer {
|
|||||||
renderBlocks.renderAllFaces = true
|
renderBlocks.renderAllFaces = true
|
||||||
}
|
}
|
||||||
|
|
||||||
for (s <- MovementManager2.getWorldStructs(world).structs)
|
MovementManager2.getWorldStructs(world).foreachStruct(renderStruct)
|
||||||
for (b <- s.preMoveBlocks)
|
}
|
||||||
render(b.x, b.y, b.z, renderPos(s, frame))
|
|
||||||
|
def onTick() = {
|
||||||
|
if (oldWorld != null && world == null) {
|
||||||
|
oldWorld = null
|
||||||
|
renderBlocks = null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def onPreRenderTick(time: Float) {
|
def onPreRenderTick(time: Float) {
|
||||||
|
|||||||