package com.infinityraider.agricraft.blocks.properties; import com.infinityraider.agricraft.api.plant.IAgriPlant; import net.minecraftforge.common.property.IUnlistedProperty; public class PropertyCropPlant implements IUnlistedProperty<IAgriPlant> { public static final PropertyCropPlant PROPERTY = new PropertyCropPlant(); private PropertyCropPlant() { } @Override public String getName() { return "crop_plant"; } @Override public boolean isValid(IAgriPlant value) { return true; } @Override public Class<IAgriPlant> getType() { return IAgriPlant.class; } @Override public String valueToString(IAgriPlant value) { return value.getId(); } }