DJD Posted August 6, 2015 Posted August 6, 2015 If you put a block's properties and extended properties in say a file (for reading in), such like: minecraft:stone,([variant=smooth_granite]) and want to place it elsewhere in the world, how would one go about setting the "variant" property of that Block to "smooth_granite" and then placing it in the world ? Quote I don't keep an open mind lest someone try to fill it with garbage - Mark Twain
DJD Posted August 6, 2015 Author Posted August 6, 2015 And its the same with extended properties ? Getting the extended properties seems to repeat the values of properties, except in cases like fences etc where properties appear to be always false and the extended provides the correct property values. Would it be proper to skip using GetProperties and just get the GetExtendedProperties instead ? Or do should you still go through properties then extended properties ? Working with vanilla blocks only atm of course..... Quote I don't keep an open mind lest someone try to fill it with garbage - Mark Twain
DJD Posted August 6, 2015 Author Posted August 6, 2015 My bad I meant block.getExtendedState seems to repeat block.getBlockState (except in the case of fences). It seems to usually repeat block.getBlockState in most cases. I think if I could clarify the proper usages of block.getActualState, block.getBlockState, and block.getExtendedState it would clarify things in my muddled mind Quote I don't keep an open mind lest someone try to fill it with garbage - Mark Twain
DJD Posted August 6, 2015 Author Posted August 6, 2015 What would be the way to take the value "smooth_granite" to the Enum value needed for the property "Variant". I can find the right property, but it seems that setting the value can get a bit... convoluted Quote I don't keep an open mind lest someone try to fill it with garbage - Mark Twain
DJD Posted August 6, 2015 Author Posted August 6, 2015 Thanks... so far this mod has pushed my knowledge of Java to new levels.... Gotta do some reading up on a Collection<? extends Comparable<?>>..... Quote I don't keep an open mind lest someone try to fill it with garbage - Mark Twain
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.