2019-06-28 17:55:20 -04:00
|
|
|
CLASS net/minecraft/class_2835 net/minecraft/world/chunk/PaletteResizeListener
|
2021-12-15 12:33:40 -05:00
|
|
|
COMMENT A listener for when a palette requires more bits to hold a newly indexed
|
2021-09-26 08:53:15 -04:00
|
|
|
COMMENT object. A no-op listener may be used if the palette does not have to
|
|
|
|
COMMENT resize.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see Palette#index(Object)
|
2019-01-25 09:36:34 -05:00
|
|
|
METHOD onResize (ILjava/lang/Object;)I
|
2021-09-26 08:53:15 -04:00
|
|
|
COMMENT Callback for a palette's request to resize to at least {@code newBits}
|
|
|
|
COMMENT for each entry and to update the storage correspondingly in order to
|
2021-12-15 12:33:40 -05:00
|
|
|
COMMENT accommodate the new object. After the resize is completed in this method,
|
2021-09-26 08:53:15 -04:00
|
|
|
COMMENT returns the ID assigned to the {@code object} in the updated palette.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @return the ID for the {@code object} in the (possibly new) palette
|
|
|
|
ARG 1 newBits
|
|
|
|
ARG 2 object
|