2121import it .unimi .dsi .fastutil .shorts .Short2FloatFunction ;
2222import it .unimi .dsi .fastutil .shorts .Short2ObjectFunction ;
2323import net .minecraft .item .ItemConvertible ;
24- import net .minecraft .util . registry .Registry ;
24+ import net .minecraft .registry .Registries ;
2525import org .jetbrains .annotations .NotNull ;
2626
2727import java .util .Map ;
@@ -63,7 +63,7 @@ public double applyAsDouble(K operand) {
6363 @ Override
6464 public float put (K key , float value ) {
6565 if (key instanceof ItemConvertible ic ) {
66- Main .logger .info ("Put detected for {}: {} -> {}" , ic , Registry .ITEM .getId (ic .asItem ()), value ,
66+ Main .logger .info ("Put detected for {}: {} -> {}" , ic , Registries .ITEM .getId (ic .asItem ()), value ,
6767 new Throwable ());
6868 } else {
6969 Main .logger .info ("Put detected for {} -> {}" , key , value , new Throwable ());
@@ -232,7 +232,7 @@ public void replaceAll(BiFunction<? super K, ? super Float, ? extends Float> fun
232232 public Float computeIfAbsent (K key , @ NotNull Function <? super K , ? extends Float > mappingFunction ) {
233233 if (key instanceof ItemConvertible ic ) {
234234 Main .logger .info ("Potential put detected for {}: {} with given function {}" , ic ,
235- Registry .ITEM .getId (ic .asItem ()), mappingFunction , new Throwable ());
235+ Registries .ITEM .getId (ic .asItem ()), mappingFunction , new Throwable ());
236236 } else {
237237 Main .logger .info ("Potential put detected for {} with given function {}" , key , mappingFunction ,
238238 new Throwable ());
@@ -245,7 +245,7 @@ public Float computeIfPresent(K key,
245245 @ NotNull BiFunction <? super K , ? super Float , ? extends Float > remappingFunction ) {
246246 if (key instanceof ItemConvertible ic ) {
247247 Main .logger .info ("Potential put detected for {}: {} with given function {}" , ic ,
248- Registry .ITEM .getId (ic .asItem ()), remappingFunction , new Throwable ());
248+ Registries .ITEM .getId (ic .asItem ()), remappingFunction , new Throwable ());
249249 } else {
250250 Main .logger .info ("Potential put detected for {} with given function {}" , key , remappingFunction ,
251251 new Throwable ());
@@ -257,7 +257,7 @@ public Float computeIfPresent(K key,
257257 public Float compute (K key , @ NotNull BiFunction <? super K , ? super Float , ? extends Float > remappingFunction ) {
258258 if (key instanceof ItemConvertible ic ) {
259259 Main .logger .info ("Potential put detected for {}: {} with given function {}" , ic ,
260- Registry .ITEM .getId (ic .asItem ()), remappingFunction , new Throwable ());
260+ Registries .ITEM .getId (ic .asItem ()), remappingFunction , new Throwable ());
261261 } else {
262262 Main .logger .info ("Potential put detected for {} with given function {}" , key , remappingFunction ,
263263 new Throwable ());
@@ -278,7 +278,7 @@ public float removeFloat(Object key) {
278278 @ Override
279279 public float putIfAbsent (K key , float value ) {
280280 if (key instanceof ItemConvertible ic ) {
281- Main .logger .info ("Potential put detected for {}: {} -> {}" , ic , Registry .ITEM .getId (ic .asItem ()), value ,
281+ Main .logger .info ("Potential put detected for {}: {} -> {}" , ic , Registries .ITEM .getId (ic .asItem ()), value ,
282282 new Throwable ());
283283 } else {
284284 Main .logger .info ("Potential put detected for {} -> {}" , key , value , new Throwable ());
@@ -305,7 +305,7 @@ public float replace(K key, float value) {
305305 public float computeIfAbsent (K key , ToDoubleFunction <? super K > mappingFunction ) {
306306 if (key instanceof ItemConvertible ic ) {
307307 Main .logger .info ("Potential put detected for {}: {} with given function {}" , ic ,
308- Registry .ITEM .getId (ic .asItem ()), mappingFunction , new Throwable ());
308+ Registries .ITEM .getId (ic .asItem ()), mappingFunction , new Throwable ());
309309 } else {
310310 Main .logger .info ("Potential put detected for {} with given function {}" , key , mappingFunction ,
311311 new Throwable ());
@@ -317,7 +317,7 @@ public float computeIfAbsent(K key, ToDoubleFunction<? super K> mappingFunction)
317317 public float computeIfAbsent (K key , Object2FloatFunction <? super K > mappingFunction ) {
318318 if (key instanceof ItemConvertible ic ) {
319319 Main .logger .info ("Potential put detected for {}: {} with given function {}" , ic ,
320- Registry .ITEM .getId (ic .asItem ()), mappingFunction , new Throwable ());
320+ Registries .ITEM .getId (ic .asItem ()), mappingFunction , new Throwable ());
321321 } else {
322322 Main .logger .info ("Potential put detected for {} with given function {}" , key , mappingFunction ,
323323 new Throwable ());
@@ -329,7 +329,7 @@ public float computeIfAbsent(K key, Object2FloatFunction<? super K> mappingFunct
329329 public float computeFloatIfPresent (K key , BiFunction <? super K , ? super Float , ? extends Float > remappingFunction ) {
330330 if (key instanceof ItemConvertible ic ) {
331331 Main .logger .info ("Potential put detected for {}: {} with given function {}" , ic ,
332- Registry .ITEM .getId (ic .asItem ()), remappingFunction , new Throwable ());
332+ Registries .ITEM .getId (ic .asItem ()), remappingFunction , new Throwable ());
333333 } else {
334334 Main .logger .info ("Potential put detected for {} with given function {}" , key , remappingFunction ,
335335 new Throwable ());
@@ -341,7 +341,7 @@ public float computeFloatIfPresent(K key, BiFunction<? super K, ? super Float, ?
341341 public float computeFloat (K key , BiFunction <? super K , ? super Float , ? extends Float > remappingFunction ) {
342342 if (key instanceof ItemConvertible ic ) {
343343 Main .logger .info ("Potential put detected for {}: {} with given function {}" , ic ,
344- Registry .ITEM .getId (ic .asItem ()), remappingFunction , new Throwable ());
344+ Registries .ITEM .getId (ic .asItem ()), remappingFunction , new Throwable ());
345345 } else {
346346 Main .logger .info ("Potential put detected for {} with given function {}" , key , remappingFunction ,
347347 new Throwable ());
@@ -354,7 +354,7 @@ public float merge(K key, float value,
354354 BiFunction <? super Float , ? super Float , ? extends Float > remappingFunction ) {
355355 if (key instanceof ItemConvertible ic ) {
356356 Main .logger .info ("Put detected for {}: {} -> {} with given function {}" , ic , value ,
357- Registry .ITEM .getId (ic .asItem ()), remappingFunction , new Throwable ());
357+ Registries .ITEM .getId (ic .asItem ()), remappingFunction , new Throwable ());
358358 } else {
359359 Main .logger .info ("Put detected for {} -> {} with given function {}" , key , value , remappingFunction ,
360360 new Throwable ());
@@ -366,7 +366,7 @@ public float merge(K key, float value,
366366 public float mergeFloat (K key , float value , FloatBinaryOperator remappingFunction ) {
367367 if (key instanceof ItemConvertible ic ) {
368368 Main .logger .info ("Put detected for {}: {} -> {} with given function {}" , ic , value ,
369- Registry .ITEM .getId (ic .asItem ()), remappingFunction , new Throwable ());
369+ Registries .ITEM .getId (ic .asItem ()), remappingFunction , new Throwable ());
370370 } else {
371371 Main .logger .info ("Put detected for {} -> {} with given function {}" , key , value , remappingFunction ,
372372 new Throwable ());
@@ -378,7 +378,7 @@ public float mergeFloat(K key, float value, FloatBinaryOperator remappingFunctio
378378 public float mergeFloat (K key , float value , DoubleBinaryOperator remappingFunction ) {
379379 if (key instanceof ItemConvertible ic ) {
380380 Main .logger .info ("Put detected for {}: {} -> {} with given function {}" , ic , value ,
381- Registry .ITEM .getId (ic .asItem ()), remappingFunction , new Throwable ());
381+ Registries .ITEM .getId (ic .asItem ()), remappingFunction , new Throwable ());
382382 } else {
383383 Main .logger .info ("Put detected for {} -> {} with given function {}" , key , value , remappingFunction ,
384384 new Throwable ());
0 commit comments