updated zh_CN, comparable NBT stack class

This commit is contained in:
Boblet 2020-08-13 13:24:01 +02:00
parent 940f9ce48f
commit 9ec86ea9d4
4 changed files with 2266 additions and 2300 deletions

File diff suppressed because it is too large Load Diff

View File

@ -5,10 +5,10 @@ import net.minecraft.util.IChatComponent;
public class EntityBallsOTronHead extends EntityBallsOTronBase implements IBossDisplayData {
/* ___ _ _ _ ___
* | _ ) /_\ | | | | / __|
* | _ \/ _ \| |__| |__\__ \
* |___/_/ \_\____|____|___/
/* ___ _ _ _ ___ ___ _____ ___ ___ _ _
* | _ ) /_\ | | | | / __| ___ | | ___ |_ _| _ )| | \| |
* | _ \/ _ \| |__| |__\__ \ |___| | | | |___| | | | \| | | |
* |___/_/ \_\____|____|___/ |___| |_| |_|\_\___|_|\_|
*/
@Override

View File

@ -213,6 +213,26 @@ public class RecipesCommon {
}
}
/*
* This implementation does not override the compare function, which effectively makes it ignore stack data.
* This is still in line with the use-case of the ComparableNBTStack holding machine output stack information,
* since the compare function is not needed. In case the compare function is required, make a new child class.
*/
public static class ComparableNBTStack extends ComparableStack {
NBTTagCompound nbt;
public ComparableNBTStack addNBT(NBTTagCompound nbt) {
this.nbt = nbt;
}
public ItemStack toStack() {
ItemStack stack = super.toStack();
stack.stackTagCompound = this.nbt;
return stack;
}
}
public static class OreDictStack extends AStack {
public String name;

View File

@ -1,71 +0,0 @@
package com.hbm.threads;
import net.minecraft.init.Blocks;
import net.minecraft.world.World;
public class ThreadLaser implements Runnable {
public Thread thread;
public boolean running = false;
public int x;
public int y;
public int z;
public World world;
public String direction;
public int age;
public ThreadLaser(World world, int x, int y, int z, String direction) {
thread = new Thread(this);
this.x = x;
this.y = y;
this.z = z;
this.world = world;
this.direction = direction;
//MinecraftForge.EVENT_BUS.register(this);
//FMLCommonHandler.instance().bus().register(this);
}
public void start() {
running = true;
if(running)
{
thread.start();
}
}
public void stop() {
running = false;
thread.stop();
}
@Override
public void run() {
while(running)
{
if(direction == "north")
{
for(int i = -1; i < 2; i++)
{
for(int j = -1; j < 2; j++)
{
world.setBlock(x, y + i, z + j, Blocks.air);
}
}
x += 1;
}
if(!(world.checkChunksExist(x - 1, y - 1, z - 1, x + 1, y + 1, z + 1)))
stop();
try {
age++;
Thread.sleep(2000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
}