maven { url 'https://files.minecraftforge.net/maven' }
}
dependencies {
- classpath 'com.github.Irtimaled:ForgeGradle:' + project.mcVersion+ '-SNAPSHOT'
+ classpath 'com.github.Irtimaled:ForgeGradle:' + project.mcVersion + '-SNAPSHOT'
classpath 'org.spongepowered:mixingradle:0.6-SNAPSHOT'
}
}
processResources {
filesMatching('profile.json') {
expand([
- 'version': project.version,
- 'mcVersion': project.mcVersion,
- 'tweakClass': project.minecraft.tweakClass,
- 'formattedTime': new Date().format("yyyy-MM-dd'T'HH:mm:ss'-08:00'")
+ 'version' : project.version,
+ 'mcVersion' : project.mcVersion,
+ 'tweakClass' : project.minecraft.tweakClass,
+ 'formattedTime': new Date().format("yyyy-MM-dd'T'HH:mm:ss'-08:00'")
])
}
manifest.attributes(
'Main-Class': 'com.irtimaled.bbor.Main'
)
-
+
classifier = 'vanilla'
}
-name = bbor
-buildVersion = 1.0.13
-
-mcVersion = 1.13
+name=bbor
+buildVersion=1.0.13
+# leave a space to reduce merge conflicts on version change
+mcVersion=1.13
@Override
protected void renderBackground() {
- if(!enabled) return;
+ if (!enabled) return;
int left = x + 1;
int top = y + 1;
import com.irtimaled.bbor.client.events.SeedCommandTyped;
import com.irtimaled.bbor.common.EventBus;
import net.minecraft.client.entity.EntityPlayerSP;
-import net.minecraft.network.NetworkManager;
public class ClientInterop {
public static void disconnectedFromRemoteServer() {
return this;
}
- public Renderer setAlpha(int alpha){
+ public Renderer setAlpha(int alpha) {
this.alpha = alpha;
return this;
}
}
private void tex(double u, double v) {
- bufferBuilder.tex(u,v);
+ bufferBuilder.tex(u, v);
}
private void color() {
}
public void addBoundingBox(AbstractBoundingBox key) {
- if(isCached(key)) return;
+ if (isCached(key)) return;
Set<AbstractBoundingBox> boundingBoxes = new HashSet<>();
boundingBoxes.add(key);
import com.irtimaled.bbor.common.models.BoundingBoxMobSpawner;
import com.irtimaled.bbor.common.models.ServerPlayer;
-import java.util.*;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
public class CommonProxy {
public static <T> void doIfType(Object value, Class<T> clazz, Consumer<T> consumer) {
T typedValue = as(value, clazz);
- if(typedValue == null) return;
+ if (typedValue == null) return;
consumer.accept(typedValue);
}
}
}
public static void tryHarvestBlock(Block block, BlockPos pos, World world) {
- if(block instanceof BlockMobSpawner) {
+ if (block instanceof BlockMobSpawner) {
EventBus.publish(new MobSpawnerBroken(world.dimension.getType().getId(), new Coords(pos)));
}
}
public abstract class MixinEntityPlayerSP {
@Inject(method = "sendChatMessage", at = @At("HEAD"), cancellable = true)
private void sendChatMessage(String message, CallbackInfo ci) {
- if(ClientInterop.interceptChatMessage(message))
+ if (ClientInterop.interceptChatMessage(message))
ci.cancel();
}
}
"package": "com.irtimaled.bbor.mixin",
"refmap": "mixins.bbor.refmap.json",
"mixins": [
- "world.chunk.MixinChunk",
- "world.MixinWorldServer",
"network.play.client.MixinCPacketCustomPayload",
- "server.management.MixinPlayerList",
+ "server.MixinMinecraftServer",
"server.management.MixinPlayerInteractionManager",
- "server.MixinMinecraftServer"
+ "server.management.MixinPlayerList",
+ "world.MixinWorldServer",
+ "world.chunk.MixinChunk"
],
"client": [
"client.MixinMinecraft",
"client.entity.MixinEntityPlayerSP",
"client.gui.MixinGuiOptions",
- "client.renderer.MixinEntityRenderer",
- "network.play.server.MixinSPacketCustomPayload",
- "network.play.server.MixinSPacketSpawnPosition",
"client.multiplayer.MixinWorldClient",
"client.network.MixinNetHandlerLoginClient",
"client.network.MixinNetHandlerPlayClient",
+ "client.renderer.MixinEntityRenderer",
+ "client.settings.MixinGameSettings",
"client.settings.MixinKeyBinding",
- "client.settings.MixinGameSettings"
+ "network.play.server.MixinSPacketCustomPayload",
+ "network.play.server.MixinSPacketSpawnPosition"
],
"server": [
"server.dedicated.MixinDedicatedServer"
{
- "inheritsFrom": "${mcVersion}",
- "id": "BBOR-${version}",
- "jar": "${mcVersion}",
- "time": "${formattedTime}",
- "type": "release",
- "arguments": {
- "game": [
- "--tweakClass",
- "${tweakClass}"
- ]
- },
- "mainClass": "net.minecraft.launchwrapper.Launch",
- "libraries": [
- {
- "name": "com.irtimaled:bbor:${version}",
- "url": "https://github.com/irtimaled/maven/releases/download/"
- },
- {
- "name": "org.spongepowered:mixin:0.7.11-SNAPSHOT",
- "url": "https://github.com/irtimaled/maven/releases/download/"
- },
- {
- "name": "org.ow2.asm:asm:6.2",
- "url": "http://repo1.maven.org/maven2/"
- },
- {
- "name": "org.ow2.asm:asm-commons:6.2",
- "url": "http://repo1.maven.org/maven2/"
- },
- {
- "name": "net.minecraft:launchwrapper:1.12"
- }
+ "inheritsFrom": "${mcVersion}",
+ "id": "BBOR-${version}",
+ "jar": "${mcVersion}",
+ "time": "${formattedTime}",
+ "type": "release",
+ "arguments": {
+ "game": [
+ "--tweakClass",
+ "${tweakClass}"
]
+ },
+ "mainClass": "net.minecraft.launchwrapper.Launch",
+ "libraries": [
+ {
+ "name": "com.irtimaled:bbor:${version}",
+ "url": "https://github.com/irtimaled/maven/releases/download/"
+ },
+ {
+ "name": "org.spongepowered:mixin:0.7.11-SNAPSHOT",
+ "url": "https://github.com/irtimaled/maven/releases/download/"
+ },
+ {
+ "name": "org.ow2.asm:asm:6.2",
+ "url": "http://repo1.maven.org/maven2/"
+ },
+ {
+ "name": "org.ow2.asm:asm-commons:6.2",
+ "url": "http://repo1.maven.org/maven2/"
+ },
+ {
+ "name": "net.minecraft:launchwrapper:1.12"
+ }
+ ]
}
\ No newline at end of file