Posted August 6, 201510 yr 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 ? I don't keep an open mind lest someone try to fill it with garbage - Mark Twain
August 6, 201510 yr Author 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..... I don't keep an open mind lest someone try to fill it with garbage - Mark Twain
August 6, 201510 yr Author 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 I don't keep an open mind lest someone try to fill it with garbage - Mark Twain
August 6, 201510 yr Author 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 I don't keep an open mind lest someone try to fill it with garbage - Mark Twain
August 6, 201510 yr Author Thanks... so far this mod has pushed my knowledge of Java to new levels.... Gotta do some reading up on a Collection<? extends Comparable<?>>..... I don't keep an open mind lest someone try to fill it with garbage - Mark Twain
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.