use of net.minecraft.block.properties.IProperty in project ImmersiveEngineering by BluSunrize.
the class BlockIEBase method createNotTempBlockState.
protected BlockStateContainer createNotTempBlockState() {
IProperty[] array = new IProperty[1 + this.additionalProperties.length];
array[0] = this.property;
for (int i = 0; i < this.additionalProperties.length; i++) array[1 + i] = this.additionalProperties[i];
if (this.additionalUnlistedProperties.length > 0)
return new ExtendedBlockState(this, array, additionalUnlistedProperties);
return new BlockStateContainer(this, array);
}
use of net.minecraft.block.properties.IProperty in project ImmersiveEngineering by BluSunrize.
the class ClientProxy method getPropertyString.
public static String getPropertyString(Map<IProperty, Comparable> propertyMap) {
StringBuilder stringbuilder = new StringBuilder();
for (Entry<IProperty, Comparable> entry : propertyMap.entrySet()) {
if (stringbuilder.length() != 0)
stringbuilder.append(",");
IProperty iproperty = entry.getKey();
Comparable comparable = entry.getValue();
stringbuilder.append(iproperty.getName());
stringbuilder.append("=");
stringbuilder.append(iproperty.getName(comparable));
}
if (stringbuilder.length() == 0)
stringbuilder.append("normal");
return stringbuilder.toString();
}
Aggregations