2015-04-20 21:08:14 +02:00
|
|
|
/*
|
|
|
|
* This file was made by modmuss50. View the licence file to see what licence this is is on. You can always ask me if you would like to use part or all of this file in your project.
|
|
|
|
*/
|
|
|
|
|
2015-04-20 22:02:25 +02:00
|
|
|
package techreborn.partSystem.parts;
|
2015-04-20 21:08:14 +02:00
|
|
|
|
|
|
|
import net.minecraft.entity.Entity;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import net.minecraft.nbt.NBTTagCompound;
|
2015-11-08 13:15:45 +01:00
|
|
|
import reborncore.common.misc.vecmath.Vecs3d;
|
|
|
|
import reborncore.common.misc.vecmath.Vecs3dCube;
|
2015-07-14 17:45:45 +02:00
|
|
|
import techreborn.partSystem.IModPart;
|
2015-04-20 22:28:54 +02:00
|
|
|
import techreborn.partSystem.ModPart;
|
2015-07-02 20:49:30 +02:00
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
2015-04-20 21:08:14 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Created by mark on 11/12/14.
|
|
|
|
*/
|
|
|
|
public class NullPart extends ModPart {
|
2015-08-09 12:05:32 +02:00
|
|
|
@Override
|
|
|
|
public void addCollisionBoxesToList(List<Vecs3dCube> boxes, Entity entity) {
|
|
|
|
boxes.add(new Vecs3dCube(0, 0, 0, 1, 1, 1));
|
|
|
|
}
|
2015-04-24 20:46:01 +02:00
|
|
|
|
2015-08-09 12:05:32 +02:00
|
|
|
@Override
|
|
|
|
public List<Vecs3dCube> getSelectionBoxes() {
|
|
|
|
List<Vecs3dCube> cubes = new ArrayList<Vecs3dCube>();
|
|
|
|
cubes.add(new Vecs3dCube(0, 0, 0, 1, 1, 1));
|
|
|
|
return cubes;
|
|
|
|
}
|
2015-04-24 20:46:01 +02:00
|
|
|
|
2015-08-09 12:05:32 +02:00
|
|
|
@Override
|
|
|
|
public List<Vecs3dCube> getOcclusionBoxes() {
|
|
|
|
return null;
|
|
|
|
}
|
2015-04-24 20:46:01 +02:00
|
|
|
|
2015-08-09 12:05:32 +02:00
|
|
|
@Override
|
|
|
|
public void renderDynamic(Vecs3d translation, double delta) {
|
2015-04-24 20:46:01 +02:00
|
|
|
|
2015-08-09 12:05:32 +02:00
|
|
|
}
|
2015-04-24 20:46:01 +02:00
|
|
|
|
2015-08-09 12:05:32 +02:00
|
|
|
@Override
|
|
|
|
public boolean renderStatic(Vecs3d translation, int pass) {
|
|
|
|
return false;
|
|
|
|
}
|
2015-04-24 20:46:01 +02:00
|
|
|
|
2015-08-09 12:05:32 +02:00
|
|
|
@Override
|
|
|
|
public void writeToNBT(NBTTagCompound tag) {
|
2015-04-24 20:46:01 +02:00
|
|
|
|
2015-08-09 12:05:32 +02:00
|
|
|
}
|
2015-04-24 20:46:01 +02:00
|
|
|
|
2015-08-09 12:05:32 +02:00
|
|
|
@Override
|
|
|
|
public void readFromNBT(NBTTagCompound tag) {
|
2015-04-24 20:46:01 +02:00
|
|
|
|
2015-08-09 12:05:32 +02:00
|
|
|
}
|
2015-04-24 20:46:01 +02:00
|
|
|
|
2015-08-09 12:05:32 +02:00
|
|
|
@Override
|
|
|
|
public ItemStack getItem() {
|
|
|
|
return null;
|
|
|
|
}
|
2015-04-24 20:46:01 +02:00
|
|
|
|
2015-08-09 12:05:32 +02:00
|
|
|
@Override
|
|
|
|
public String getName() {
|
|
|
|
return "NullPart";
|
|
|
|
}
|
2015-04-24 20:46:01 +02:00
|
|
|
|
2015-08-09 12:05:32 +02:00
|
|
|
@Override
|
|
|
|
public String getItemTextureName() {
|
|
|
|
return "";
|
|
|
|
}
|
2015-04-24 20:46:01 +02:00
|
|
|
|
2015-08-09 12:05:32 +02:00
|
|
|
@Override
|
|
|
|
public void tick() {
|
2015-04-24 20:46:01 +02:00
|
|
|
|
2015-08-09 12:05:32 +02:00
|
|
|
}
|
2015-04-24 20:46:01 +02:00
|
|
|
|
2015-08-09 12:05:32 +02:00
|
|
|
@Override
|
|
|
|
public void nearByChange() {
|
2015-04-24 20:46:01 +02:00
|
|
|
|
2015-08-09 12:05:32 +02:00
|
|
|
}
|
2015-04-24 20:46:01 +02:00
|
|
|
|
2015-08-09 12:05:32 +02:00
|
|
|
@Override
|
|
|
|
public void onAdded() {
|
2015-04-24 20:46:01 +02:00
|
|
|
|
2015-08-09 12:05:32 +02:00
|
|
|
}
|
2015-04-24 20:46:01 +02:00
|
|
|
|
2015-08-09 12:05:32 +02:00
|
|
|
@Override
|
|
|
|
public void onRemoved() {
|
2015-04-24 20:46:01 +02:00
|
|
|
|
2015-08-09 12:05:32 +02:00
|
|
|
}
|
2015-07-14 17:45:45 +02:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public IModPart copy() {
|
|
|
|
return new NullPart();
|
|
|
|
}
|
2015-04-20 21:08:14 +02:00
|
|
|
}
|