Package net.minecraft.isom
Class IsomPreviewCanvas
java.lang.Object
java.awt.Component
java.awt.Canvas
net.minecraft.isom.IsomPreviewCanvas
- All Implemented Interfaces:
KeyListener,MouseListener,MouseMotionListener,ImageObserver,MenuContainer,Serializable,Runnable,EventListener,Accessible
@Environment(CLIENT)
public class IsomPreviewCanvas
extends Canvas
implements KeyListener, MouseListener, MouseMotionListener, Runnable
- See Also:
- Mappings:
Namespace Name intermediary net/minecraft/class_477glue class_51server net/minecraft/class_477client bdnamed net/minecraft/isom/IsomPreviewCanvas
-
Nested Class Summary
Nested classes/interfaces inherited from class java.awt.Canvas
Canvas.AccessibleAWTCanvasNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate IsomRenderChunk[][]private ListList of IsomRenderChunkprivate intprivate intprivate intprivate intprivate intprivate booleanprivate booleanprivate intprivate Fileprivate WorldFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate IsomRenderChunkgetChunk(int x, int y) private static OSgetOs()getWorkingDirectory(String name) voidkeyPressed(KeyEvent keyEvent) voidkeyReleased(KeyEvent keyEvent) voidvoidmouseClicked(MouseEvent mouseEvent) voidmouseDragged(MouseEvent mouseEvent) voidmouseEntered(MouseEvent mouseEvent) voidmouseExited(MouseEvent mouseEvent) voidmouseMoved(MouseEvent mouseEvent) voidmousePressed(MouseEvent mouseEvent) voidmouseReleased(MouseEvent mouseEvent) voidvoidvoidrender(Graphics2D graphics) voidrun()private voidsetAmbientDarkness(int ambientDarkness) voidstart()voidstop()voidupdate()voidMethods inherited from class java.awt.Canvas
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategyMethods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setMixingCutoutShape, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate
-
Field Details
-
frames
private int frames- Mappings:
Namespace Name Mixin selector intermediary field_1957Lnet/minecraft/class_477;field_1957:Iglue field_91Lclass_51;field_91:Iserver field_1957Lnet/minecraft/class_477;field_1957:Iclient aLbd;a:Inamed framesLnet/minecraft/isom/IsomPreviewCanvas;frames:I
-
scale
private int scale- Mappings:
Namespace Name Mixin selector intermediary field_1958Lnet/minecraft/class_477;field_1958:Iglue field_92Lclass_51;field_92:Iserver field_1958Lnet/minecraft/class_477;field_1958:Iclient bLbd;b:Inamed scaleLnet/minecraft/isom/IsomPreviewCanvas;scale:I
-
renderDebugInfo
private boolean renderDebugInfo- Mappings:
Namespace Name Mixin selector intermediary field_1959Lnet/minecraft/class_477;field_1959:Zglue field_93Lclass_51;field_93:Zserver field_1959Lnet/minecraft/class_477;field_1959:Zclient cLbd;c:Znamed renderDebugInfoLnet/minecraft/isom/IsomPreviewCanvas;renderDebugInfo:Z
-
world
- Mappings:
Namespace Name Mixin selector intermediary field_1960Lnet/minecraft/class_477;field_1960:Lnet/minecraft/class_18;glue field_94Lclass_51;field_94:Lclass_129;server field_1960Lnet/minecraft/class_477;field_1960:Ldj;client dLbd;d:Lfd;named worldLnet/minecraft/isom/IsomPreviewCanvas;world:Lnet/minecraft/world/World;
-
workingDir
- Mappings:
Namespace Name Mixin selector intermediary field_1961Lnet/minecraft/class_477;field_1961:Ljava/io/File;glue field_95Lclass_51;field_95:Ljava/io/File;server field_1961Lnet/minecraft/class_477;field_1961:Ljava/io/File;client eLbd;e:Ljava/io/File;named workingDirLnet/minecraft/isom/IsomPreviewCanvas;workingDir:Ljava/io/File;
-
running
private boolean running- Mappings:
Namespace Name Mixin selector intermediary field_1962Lnet/minecraft/class_477;field_1962:Zglue field_96Lclass_51;field_96:Zserver field_1962Lnet/minecraft/class_477;field_1962:Zclient fLbd;f:Znamed runningLnet/minecraft/isom/IsomPreviewCanvas;running:Z
-
chunksToRender
List of IsomRenderChunk- Mappings:
Namespace Name Mixin selector intermediary field_1963Lnet/minecraft/class_477;field_1963:Ljava/util/List;glue field_97Lclass_51;field_97:Ljava/util/List;server field_1963Lnet/minecraft/class_477;field_1963:Ljava/util/List;client gLbd;g:Ljava/util/List;named chunksToRenderLnet/minecraft/isom/IsomPreviewCanvas;chunksToRender:Ljava/util/List;
-
chunks
- Mappings:
Namespace Name Mixin selector intermediary field_1964Lnet/minecraft/class_477;field_1964:[[Lnet/minecraft/class_478;glue field_98Lclass_51;field_98:[[Lclass_640;server field_1964Lnet/minecraft/class_477;field_1964:[[Lnet/minecraft/class_478;client hLbd;h:[[Lre;named chunksLnet/minecraft/isom/IsomPreviewCanvas;chunks:[[Lnet/minecraft/isom/IsomRenderChunk;
-
offsetX
private int offsetX- Mappings:
Namespace Name Mixin selector intermediary field_1965Lnet/minecraft/class_477;field_1965:Iglue field_99Lclass_51;field_99:Iserver field_1965Lnet/minecraft/class_477;field_1965:Iclient iLbd;i:Inamed offsetXLnet/minecraft/isom/IsomPreviewCanvas;offsetX:I
-
offsetZ
private int offsetZ- Mappings:
Namespace Name Mixin selector intermediary field_1954Lnet/minecraft/class_477;field_1954:Iglue field_100Lclass_51;field_100:Iserver field_1954Lnet/minecraft/class_477;field_1954:Iclient jLbd;j:Inamed offsetZLnet/minecraft/isom/IsomPreviewCanvas;offsetZ:I
-
mouseX
private int mouseX- Mappings:
Namespace Name Mixin selector intermediary field_1955Lnet/minecraft/class_477;field_1955:Iglue field_101Lclass_51;field_101:Iserver field_1955Lnet/minecraft/class_477;field_1955:Iclient kLbd;k:Inamed mouseXLnet/minecraft/isom/IsomPreviewCanvas;mouseX:I
-
mouseY
private int mouseY- Mappings:
Namespace Name Mixin selector intermediary field_1956Lnet/minecraft/class_477;field_1956:Iglue field_102Lclass_51;field_102:Iserver field_1956Lnet/minecraft/class_477;field_1956:Iclient lLbd;l:Inamed mouseYLnet/minecraft/isom/IsomPreviewCanvas;mouseY:I
-
-
Constructor Details
-
IsomPreviewCanvas
public IsomPreviewCanvas()
-
-
Method Details
-
getWorkingDirectory
- Mappings:
Namespace Name Mixin selector intermediary method_1633Lnet/minecraft/class_477;method_1633()Ljava/io/File;glue method_160Lclass_51;method_160()Ljava/io/File;server method_1633Lnet/minecraft/class_477;method_1633()Ljava/io/File;client aLbd;a()Ljava/io/File;named getWorkingDirectoryLnet/minecraft/isom/IsomPreviewCanvas;getWorkingDirectory()Ljava/io/File;
-
getWorkingDirectory
- Mappings:
Namespace Name Mixin selector intermediary method_1638Lnet/minecraft/class_477;method_1638(Ljava/lang/String;)Ljava/io/File;glue method_165Lclass_51;method_165(Ljava/lang/String;)Ljava/io/File;server method_1638Lnet/minecraft/class_477;method_1638(Ljava/lang/String;)Ljava/io/File;client aLbd;a(Ljava/lang/String;)Ljava/io/File;named getWorkingDirectoryLnet/minecraft/isom/IsomPreviewCanvas;getWorkingDirectory(Ljava/lang/String;)Ljava/io/File;
-
getOs
- Mappings:
Namespace Name Mixin selector intermediary method_1643Lnet/minecraft/class_477;method_1643()Lnet/minecraft/class_343;glue method_170Lclass_51;method_170()Lclass_366;server method_1643Lnet/minecraft/class_477;method_1643()Lnet/minecraft/class_343;client eLbd;e()Ljn;named getOsLnet/minecraft/isom/IsomPreviewCanvas;getOs()Lnet/minecraft/isom/OS;
-
openWorld
- Mappings:
Namespace Name Mixin selector intermediary method_1640Lnet/minecraft/class_477;method_1640(Ljava/lang/String;)Vglue method_167Lclass_51;method_167(Ljava/lang/String;)Vserver method_1640Lnet/minecraft/class_477;method_1640(Ljava/lang/String;)Vclient bLbd;b(Ljava/lang/String;)Vnamed openWorldLnet/minecraft/isom/IsomPreviewCanvas;openWorld(Ljava/lang/String;)V
-
setAmbientDarkness
private void setAmbientDarkness(int ambientDarkness) - Mappings:
Namespace Name Mixin selector intermediary method_1634Lnet/minecraft/class_477;method_1634(I)Vglue method_161Lclass_51;method_161(I)Vserver method_1634Lnet/minecraft/class_477;method_1634(I)Vclient aLbd;a(I)Vnamed setAmbientDarknessLnet/minecraft/isom/IsomPreviewCanvas;setAmbientDarkness(I)V
-
start
public void start()- Mappings:
Namespace Name Mixin selector intermediary method_1639Lnet/minecraft/class_477;method_1639()Vglue method_166Lclass_51;method_166()Vserver method_1639Lnet/minecraft/class_477;method_1639()Vclient bLbd;b()Vnamed startLnet/minecraft/isom/IsomPreviewCanvas;start()V
-
stop
public void stop()- Mappings:
Namespace Name Mixin selector intermediary method_1641Lnet/minecraft/class_477;method_1641()Vglue method_168Lclass_51;method_168()Vserver method_1641Lnet/minecraft/class_477;method_1641()Vclient cLbd;c()Vnamed stopLnet/minecraft/isom/IsomPreviewCanvas;stop()V
-
getChunk
- Mappings:
Namespace Name Mixin selector intermediary method_1635Lnet/minecraft/class_477;method_1635(II)Lnet/minecraft/class_478;glue method_162Lclass_51;method_162(II)Lclass_640;server method_1635Lnet/minecraft/class_477;method_1635(II)Lnet/minecraft/class_478;client aLbd;a(II)Lre;named getChunkLnet/minecraft/isom/IsomPreviewCanvas;getChunk(II)Lnet/minecraft/isom/IsomRenderChunk;
-
run
public void run() -
update
- Overrides:
updatein classCanvas- Mappings:
Namespace Name Mixin selector intermediary updateLnet/minecraft/class_477;update(Ljava/awt/Graphics;)Vglue updateLclass_51;update(Ljava/awt/Graphics;)Vserver updateLnet/minecraft/class_477;update(Ljava/awt/Graphics;)Vclient updateLbd;update(Ljava/awt/Graphics;)Vnamed updateLnet/minecraft/isom/IsomPreviewCanvas;update(Ljava/awt/Graphics;)V
-
paint
- Overrides:
paintin classCanvas- Mappings:
Namespace Name Mixin selector intermediary paintLnet/minecraft/class_477;paint(Ljava/awt/Graphics;)Vglue paintLclass_51;paint(Ljava/awt/Graphics;)Vserver paintLnet/minecraft/class_477;paint(Ljava/awt/Graphics;)Vclient paintLbd;paint(Ljava/awt/Graphics;)Vnamed paintLnet/minecraft/isom/IsomPreviewCanvas;paint(Ljava/awt/Graphics;)V
-
update
public void update()- Mappings:
Namespace Name Mixin selector intermediary method_1642Lnet/minecraft/class_477;method_1642()Vglue method_169Lclass_51;method_169()Vserver method_1642Lnet/minecraft/class_477;method_1642()Vclient dLbd;d()Vnamed updateLnet/minecraft/isom/IsomPreviewCanvas;update()V
-
render
- Mappings:
Namespace Name Mixin selector intermediary method_1637Lnet/minecraft/class_477;method_1637(Ljava/awt/Graphics2D;)Vglue method_164Lclass_51;method_164(Ljava/awt/Graphics2D;)Vserver method_1637Lnet/minecraft/class_477;method_1637(Ljava/awt/Graphics2D;)Vclient aLbd;a(Ljava/awt/Graphics2D;)Vnamed renderLnet/minecraft/isom/IsomPreviewCanvas;render(Ljava/awt/Graphics2D;)V
-
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseMotionListener- Mappings:
Namespace Name Mixin selector intermediary mouseDraggedLnet/minecraft/class_477;mouseDragged(Ljava/awt/event/MouseEvent;)Vglue mouseDraggedLclass_51;mouseDragged(Ljava/awt/event/MouseEvent;)Vserver mouseDraggedLnet/minecraft/class_477;mouseDragged(Ljava/awt/event/MouseEvent;)Vclient mouseDraggedLbd;mouseDragged(Ljava/awt/event/MouseEvent;)Vnamed mouseDraggedLnet/minecraft/isom/IsomPreviewCanvas;mouseDragged(Ljava/awt/event/MouseEvent;)V
-
mouseMoved
- Specified by:
mouseMovedin interfaceMouseMotionListener- Mappings:
Namespace Name Mixin selector intermediary mouseMovedLnet/minecraft/class_477;mouseMoved(Ljava/awt/event/MouseEvent;)Vglue mouseMovedLclass_51;mouseMoved(Ljava/awt/event/MouseEvent;)Vserver mouseMovedLnet/minecraft/class_477;mouseMoved(Ljava/awt/event/MouseEvent;)Vclient mouseMovedLbd;mouseMoved(Ljava/awt/event/MouseEvent;)Vnamed mouseMovedLnet/minecraft/isom/IsomPreviewCanvas;mouseMoved(Ljava/awt/event/MouseEvent;)V
-
mouseClicked
- Specified by:
mouseClickedin interfaceMouseListener- Mappings:
Namespace Name Mixin selector intermediary mouseClickedLnet/minecraft/class_477;mouseClicked(Ljava/awt/event/MouseEvent;)Vglue mouseClickedLclass_51;mouseClicked(Ljava/awt/event/MouseEvent;)Vserver mouseClickedLnet/minecraft/class_477;mouseClicked(Ljava/awt/event/MouseEvent;)Vclient mouseClickedLbd;mouseClicked(Ljava/awt/event/MouseEvent;)Vnamed mouseClickedLnet/minecraft/isom/IsomPreviewCanvas;mouseClicked(Ljava/awt/event/MouseEvent;)V
-
mouseEntered
- Specified by:
mouseEnteredin interfaceMouseListener- Mappings:
Namespace Name Mixin selector intermediary mouseEnteredLnet/minecraft/class_477;mouseEntered(Ljava/awt/event/MouseEvent;)Vglue mouseEnteredLclass_51;mouseEntered(Ljava/awt/event/MouseEvent;)Vserver mouseEnteredLnet/minecraft/class_477;mouseEntered(Ljava/awt/event/MouseEvent;)Vclient mouseEnteredLbd;mouseEntered(Ljava/awt/event/MouseEvent;)Vnamed mouseEnteredLnet/minecraft/isom/IsomPreviewCanvas;mouseEntered(Ljava/awt/event/MouseEvent;)V
-
mouseExited
- Specified by:
mouseExitedin interfaceMouseListener- Mappings:
Namespace Name Mixin selector intermediary mouseExitedLnet/minecraft/class_477;mouseExited(Ljava/awt/event/MouseEvent;)Vglue mouseExitedLclass_51;mouseExited(Ljava/awt/event/MouseEvent;)Vserver mouseExitedLnet/minecraft/class_477;mouseExited(Ljava/awt/event/MouseEvent;)Vclient mouseExitedLbd;mouseExited(Ljava/awt/event/MouseEvent;)Vnamed mouseExitedLnet/minecraft/isom/IsomPreviewCanvas;mouseExited(Ljava/awt/event/MouseEvent;)V
-
mousePressed
- Specified by:
mousePressedin interfaceMouseListener- Mappings:
Namespace Name Mixin selector intermediary mousePressedLnet/minecraft/class_477;mousePressed(Ljava/awt/event/MouseEvent;)Vglue mousePressedLclass_51;mousePressed(Ljava/awt/event/MouseEvent;)Vserver mousePressedLnet/minecraft/class_477;mousePressed(Ljava/awt/event/MouseEvent;)Vclient mousePressedLbd;mousePressed(Ljava/awt/event/MouseEvent;)Vnamed mousePressedLnet/minecraft/isom/IsomPreviewCanvas;mousePressed(Ljava/awt/event/MouseEvent;)V
-
mouseReleased
- Specified by:
mouseReleasedin interfaceMouseListener- Mappings:
Namespace Name Mixin selector intermediary mouseReleasedLnet/minecraft/class_477;mouseReleased(Ljava/awt/event/MouseEvent;)Vglue mouseReleasedLclass_51;mouseReleased(Ljava/awt/event/MouseEvent;)Vserver mouseReleasedLnet/minecraft/class_477;mouseReleased(Ljava/awt/event/MouseEvent;)Vclient mouseReleasedLbd;mouseReleased(Ljava/awt/event/MouseEvent;)Vnamed mouseReleasedLnet/minecraft/isom/IsomPreviewCanvas;mouseReleased(Ljava/awt/event/MouseEvent;)V
-
keyPressed
- Specified by:
keyPressedin interfaceKeyListener- Mappings:
Namespace Name Mixin selector intermediary keyPressedLnet/minecraft/class_477;keyPressed(Ljava/awt/event/KeyEvent;)Vglue keyPressedLclass_51;keyPressed(Ljava/awt/event/KeyEvent;)Vserver keyPressedLnet/minecraft/class_477;keyPressed(Ljava/awt/event/KeyEvent;)Vclient keyPressedLbd;keyPressed(Ljava/awt/event/KeyEvent;)Vnamed keyPressedLnet/minecraft/isom/IsomPreviewCanvas;keyPressed(Ljava/awt/event/KeyEvent;)V
-
keyReleased
- Specified by:
keyReleasedin interfaceKeyListener- Mappings:
Namespace Name Mixin selector intermediary keyReleasedLnet/minecraft/class_477;keyReleased(Ljava/awt/event/KeyEvent;)Vglue keyReleasedLclass_51;keyReleased(Ljava/awt/event/KeyEvent;)Vserver keyReleasedLnet/minecraft/class_477;keyReleased(Ljava/awt/event/KeyEvent;)Vclient keyReleasedLbd;keyReleased(Ljava/awt/event/KeyEvent;)Vnamed keyReleasedLnet/minecraft/isom/IsomPreviewCanvas;keyReleased(Ljava/awt/event/KeyEvent;)V
-
keyTyped
- Specified by:
keyTypedin interfaceKeyListener- Mappings:
Namespace Name Mixin selector intermediary keyTypedLnet/minecraft/class_477;keyTyped(Ljava/awt/event/KeyEvent;)Vglue keyTypedLclass_51;keyTyped(Ljava/awt/event/KeyEvent;)Vserver keyTypedLnet/minecraft/class_477;keyTyped(Ljava/awt/event/KeyEvent;)Vclient keyTypedLbd;keyTyped(Ljava/awt/event/KeyEvent;)Vnamed keyTypedLnet/minecraft/isom/IsomPreviewCanvas;keyTyped(Ljava/awt/event/KeyEvent;)V
-