Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-09-07 00:22:51 +02:00
Implemented the ID helper
Dieser Commit ist enthalten in:
Ursprung
2db47f8fd4
Commit
d468557e79
@ -19,9 +19,10 @@
|
||||
|
||||
package com.sk89q.worldedit.sponge;
|
||||
|
||||
import com.sk89q.worldedit.entity.BaseEntity;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
import org.spongepowered.api.block.BlockType;
|
||||
import org.spongepowered.api.entity.Entity;
|
||||
import org.spongepowered.api.item.ItemType;
|
||||
import org.spongepowered.api.world.biome.BiomeType;
|
||||
|
||||
@ -30,29 +31,26 @@ final class IDHelper {
|
||||
private IDHelper() { }
|
||||
|
||||
public static int resolve(ItemType type) {
|
||||
return 0;
|
||||
return Item.getIdFromItem((Item) type);
|
||||
}
|
||||
|
||||
public static int resolve(BlockType type) {
|
||||
return 0;
|
||||
return Block.getIdFromBlock((Block) type);
|
||||
}
|
||||
|
||||
public static int resolve(BiomeType type) {
|
||||
return 0;
|
||||
return ((BiomeGenBase) type).biomeID;
|
||||
}
|
||||
|
||||
|
||||
public static ItemType resolveItem(int ID) {
|
||||
return null;
|
||||
return (ItemType) Item.getItemById(ID);
|
||||
}
|
||||
|
||||
public static BlockType resolveBlock(int ID) {
|
||||
return null;
|
||||
return (BlockType) Block.getBlockById(ID);
|
||||
}
|
||||
|
||||
public static BiomeType resolveBiome(int ID) {
|
||||
return null;
|
||||
return (BiomeType) BiomeGenBase.getBiome(ID);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren