удален интерфейс Taggable
This commit is contained in:
@@ -40,21 +40,6 @@ public class AnvilBlock implements Block {
|
|||||||
return location;
|
return location;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Tag<?> getTag(String name) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setTag(Tag<?> tag) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Stream<Tag<?>> tagStream() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "AnvilBlock{" +
|
return "AnvilBlock{" +
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
package mc.core.nbt;
|
|
||||||
|
|
||||||
import com.flowpowered.nbt.Tag;
|
|
||||||
|
|
||||||
import java.util.stream.Stream;
|
|
||||||
|
|
||||||
public interface Taggable {
|
|
||||||
Tag<?> getTag(String name);
|
|
||||||
void setTag(Tag<?> tag);
|
|
||||||
Stream<Tag<?>> tagStream();
|
|
||||||
}
|
|
||||||
@@ -6,7 +6,6 @@ import lombok.Setter;
|
|||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.stream.Stream;
|
|
||||||
|
|
||||||
public abstract class AbstractBlock implements Block {
|
public abstract class AbstractBlock implements Block {
|
||||||
@Getter
|
@Getter
|
||||||
@@ -28,19 +27,4 @@ public abstract class AbstractBlock implements Block {
|
|||||||
else if (light < 0) this.light = 0;
|
else if (light < 0) this.light = 0;
|
||||||
else this.light = light;
|
else this.light = light;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Tag<?> getTag(String name) {
|
|
||||||
return nbtTagsMap.get(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setTag(Tag<?> tag) {
|
|
||||||
nbtTagsMap.put(tag.getName(), tag);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Stream<Tag<?>> tagStream() {
|
|
||||||
return nbtTagsMap.values().stream();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
package mc.core.world.block;
|
package mc.core.world.block;
|
||||||
|
|
||||||
import mc.core.nbt.Taggable;
|
public interface Block {
|
||||||
|
|
||||||
public interface Block extends Taggable{
|
|
||||||
int getLight();
|
int getLight();
|
||||||
void setLight(int light);
|
void setLight(int light);
|
||||||
BlockType getBlockType();
|
BlockType getBlockType();
|
||||||
|
|||||||
Reference in New Issue
Block a user